Work with your Polythought instance: build and run workflows, research markets, trade on paper and live, take your workflows' tasks, and an admin's work.
Polythought is a workflow builder for Polymarket that you run on your own server. Its
workflows watch markets, follow traders, ask a language model, message you on Telegram, and
trade, on paper or with real money. You build them on a canvas or write them in TypeScript,
and agents such as Claude Code or Codex can build and run them with you over MCP.
Features
Build
Canvas. Search the node list, drag nodes in, and connect them port to port. Undo and
redo, copy and paste between workflows, and keyboard shortcuts you can rebind.
Workflow as code. Read and edit any workflow as TypeScript, type-checked as you write,
then apply it back to the canvas.
Expressions.{{ }} in any setting, in the same language and sandbox as code.
Code and custom nodes. Transform, filter, route or aggregate items in TypeScript, or make
a node type of your own with its settings, outputs and code. User code runs in QuickJS-NG
compiled to WebAssembly under wazero, a fresh instance for each run.
Runs. Every run is kept and replayed on the canvas, with the items each node passed on.
Fields are checked as you type them.
Workflows
Nodes for each step: triggers (by hand, on a schedule, on market activity, on traders'
trades, on your own orders, on a Telegram message), Polymarket data, logic, transforms,
code, trading, Telegram, webhooks and AI.
Library. Ready-made workflows to copy and change, and the ones members share, with
their wallets, credentials and webhook URLs left behind.
Alerts to Telegram, Discord, Slack or any JSON endpoint.
Waits. A run that waits, for a time or for an answer on Telegram, keeps nothing busy
and carries on after a restart.
Trading
Copy traders. Follow traders' wallets and copy their trades a few seconds after they
make them, sized and limited as you say, or only once several of them agree.
Paper trading. Paper orders fill against the live order book, paying the taker fee
Polymarket would, with profit and loss per trader.
Live trading. Orders are signed in Go as EIP-712, for EOA, proxy, Safe and Deposit
Wallet accounts, from a session key you authorise in MetaMask or Rabby. Each order is
recorded before it is sent, so a timeout never places it twice.
Safety. A Risk guard node keeps trades within limits per market, per day and per price.
Admins cap live orders, and a kill switch in the app and on Telegram stops live trading.
Live trading is off until an admin turns it on.
AI and agents
AI agent node. Ask a model about each item, with your own key: Anthropic, Gemini, or
anything OpenAI-compatible, such as OpenRouter or a model on your network. Answers come
back as text, as fields or to a JSON schema, and the model can look things up with
read-only market tools. Spend is capped each month.
Local agent node. Hand a task to your own Claude Code or Codex and wait for its answer.
Agents over MCP. Connect Claude Code, Codex, Gemini CLI, Cursor, opencode or VS Code.
They sign in with OAuth 2, get the scopes you tick, from read to live, and anything live
waits for your confirmation in the app or on Telegram. A
Claude Code plugin comes with it.
Plugins
Plugins written in Go, over gRPC, bring nodes, triggers and credential types of their own.
An admin approves what each asks for, signed with minisign or flagged as not.
On Linux 6.2 or newer they run sandboxed, under Landlock, seccomp and rlimits, with caps on
their memory and data. See the example plugin.
Platform
One Go binary is the API, the MCP endpoint, the code runner and the sandbox launcher,
beside PostgreSQL. Caddy serves the web app and the docs.
Admins configure the instance in the browser, with a history of every change, and can
restart it from there. Sign-up is open, by invite or closed.
Admins hear when a new release is out, and can update to it from the Config page with
the optional updater container.
A Telegram bot for your workflows, traders, positions and notifications.
Secrets are encrypted at rest with AES-256-GCM, a key for each, and passwords are hashed
with Argon2id.