Do not run a Polymarket bot from GitHub until you have read its code. In 2026, security researchers documented fake Polymarket bots on GitHub and npm that looked like working bots while sending users’ private keys to attackers. Start from Polymarket’s own clients, use a separate low-balance wallet, and never paste a key into an installer.
I built my own Polymarket bot, which I wrote up in how I built my Polymarket trading bot. My GitHub account still holds a fork of one I looked at. This page is the check I would run before any bot touches a wallet.
Are open-source Polymarket bots on GitHub safe?
Some are, but the name “Polymarket bot” has become bait. Two 2026 write-ups from security firms show how it works.
- Nine npm packages, May 2026. SafeDep found nine packages with names like
polymarket-bot,polymarket-traderandpolymarket-copy-trading, all from one account. On install, a script showed a fake wallet setup prompt asking for your private key. The code also read a private key from your environment or.envfile and sent it to the attacker’s server. The packages bundled the real Polymarket client, and their trading commands ran in paper mode by default, which made them look legitimate. - A hijacked GitHub organization, early 2026. StepSecurity found a copy-trading bot in a GitHub organization that had changed hands, with about 20 similar repos. Its dependencies included a misspelled copy of a popular library. They searched the folder for
.envand wallet files, sent them to lookalike domains, and opened an SSH backdoor. The bot still connected to the real Polymarket API.
The pattern in both: the bot looks like it works. “It ran fine” proves nothing about what else it did.
What did I find when I checked a Polymarket bot repo?
My own GitHub account holds a fork of a Polymarket bot repo, named with the word OpenClaw, whose last commit was on 07/29/2026. When I opened it again on 11/22/2026, it contained this:
- No source code. The repo has two files: a README and a license.
- A download instead of code. The README tells you to download an archive from the releases page and unzip it with a password. Then you run a Windows
.exe. - Badges that are pictures, not data. “23k+ downloads” and “4.5/5 rating” are fixed images. Nothing counts them.
- A promise you cannot check. The README says your keys never leave your machine, but there is no code to show it.
I did not download or run the program, so I cannot tell you what it does. I am not saying its author acted in bad faith, only that the repo gives you nothing to verify. I do not recommend running it. A password on an archive stops many scanners from looking inside. An “open-source” bot with no source asks you to trust a program you cannot inspect.
Which official Polymarket repos should you start from?
Polymarket publishes its own clients under github.com/Polymarket. When I checked on 11/22/2026, these were the main ones for a bot builder:
| Repo | What it is | License |
|---|---|---|
| py-clob-client-v2 | Python client for Polymarket’s order book API | MIT |
| clob-client-v2 | TypeScript client for the same API | MIT |
| rs-clob-client-v2 | Rust client | MIT |
| agents | AI trading agent framework, archived 05/11/2026 and read-only | MIT |
| polymarket-us-python, polymarket-us-typescript | Official SDKs for Polymarket US | MIT |
Build your strategy on top of one of these. You then only have to trust Polymarket’s code and your own, not a stranger’s install script.
What does a Polymarket bot actually need from you?
A trading bot needs one secret: a wallet private key. Polymarket’s docs explain why. The key signs a message that creates your API key, secret and passphrase, and it signs each order. The API secret then signs each request.
A legitimate bot never needs these:
- your wallet’s seed phrase (the recovery words)
- your password for an exchange, your bank or your email
- you to type or paste a key into a prompt during install
- your main wallet, the one that holds everything else
Make a separate wallet for the bot and fund it with only what you can lose. If the bot turns out to be malicious, that wallet is the whole loss.
How do you check a Polymarket bot before running it?
This is the checklist I would use. Each item comes from the incidents above or from what I saw in the repo I checked.
- Is there real source code? No code plus a downloadable
.exeor a password-protected archive means stop. - Read the install scripts. In
package.json, look forpreinstall,installandpostinstall. Install withnpm install --ignore-scriptsuntil you have read them. That does not protect you at startup. StepSecurity found the malicious code also ran when the bot started, so read the source before you run it. For Python, readsetup.pyand any script the README tells you to run. - Check every dependency name. A misspelled package, such as one letter off a popular library, is a red flag. Look each unfamiliar package up on npm or PyPI and check who published it and when.
- Search for file reads and network calls. Search the code for
.env,id.json,config.toml,PRIVATE_KEYandfetch,axios,requestsorhttp. A bot should talk to Polymarket’s API. Anything that reads your key files and posts to another domain is a stop. - Look at who owns it and how it grew. A brand-new account is a warning sign. So is an old organization that suddenly fills with near-identical repos, or a burst of stars from empty accounts. Researchers have documented fake star networks used to push crypto malware.
- Run it somewhere disposable first. Use a throwaway virtual machine or container. Keep wallets, SSH keys and
.envfiles off it. Run it in dry-run mode and watch which domains it connects to. - Then run it small. Only after the code passes, give it the separate wallet with a small balance.
If that sounds like a lot of work for a free bot, it is. Free code can still be safe, but you pay for it in review time.
Once a bot passes these checks, it needs a machine that stays on. I compared the hosting options in Polymarket bot hosting.
Should you use someone else’s bot at all?
I would use someone else’s code to learn the API, never to trade without reading it. Even an honest open-source bot does not bring an edge. My own bot picked the winning side in 6 of 7 live trades and still lost money. I broke that down in my Polymarket BTC up/down bot.
Before you trade
Prediction market contracts can lose their full price, and a stolen key can lose everything in the wallet. Check Polymarket’s terms for where you live before you trade. Nothing here is financial or legal advice. I am not affiliated with Polymarket and earn nothing from it.
Sources
Checked 11/22/2026.
