Polymarket trading,
for your agent.
PolyMirror is the agent-native control plane. Issue a scoped API key, copy one setup prompt into Codex or Claude, and let your agent discover leaders, run copytrades, and tune controls — all within budgets and guardrails you set in the dashboard. Source-beta access currently requires the private PolyMirror repository.
CLI setup currently requires access to the private PolyMirror source repository.
One CLI. One shared skill.
One contract behind everything.
polymirror-cli
One deterministic binary. JSON envelopes, stable exit codes, redacted secrets, and idempotent mutations across discovery, mirrors, controls, positions, and budgets.
Codex & Claude
One generated skill teaches both agents the same setup, source routing, readiness, preview, confirmation, debugging, and recovery protocol.
Schema-first
Every command, error envelope, and capability is defined as JSON Schema. One contract, validated by the CLI, provider skills, and eval harness.
Discover. Preview.
Then confirm.
Agents start with capabilities to learn the surface, then readiness diagnose to confirm the signer is healthy. Financial commands use --dry-run or a preview command before signing, and every mutation accepts an idempotency key.
{
"schema_version": "1.0",
"ok": true,
"command": "capabilities",
"risk": "safe",
"data": [
{ "command": "budget.set", "available": true,
"risk": "low", "supports_dry_run": true,
"requires_confirm": true,
"required_scopes": ["budget:write"] }
]
}{
"schema_version": "1.0",
"ok": true,
"command": "budget.set",
"risk": "low",
"data": {
"plan_id": "plan_1781828400000",
"plan_hash": "sha256:f3a1…b94e",
"dailyCapMicros": "1000000",
"requires_confirm": true,
"execute_command": ["polymirror-cli", "budget", "set",
"--input", "plan.json", "--confirm",
"--idempotency-key", "<key>", "--json"]
}
}{
"schema_version": "1.0",
"ok": true,
"command": "budget.set",
"risk": "low",
"data": {
"dailyCapMicros": "1000000",
"currency": "usdc",
"effectiveRemainingMicros": "1000000"
}
}Bring your own agent.
One generated protocol owns installation, private authentication, readiness, recovery, and the installed skill — so Codex and Claude see the same contract.
Codex CLI
Copy one prompt from Agent Keys. Codex acquires the private source, installs the CLI and skill, opens private key entry, and proves an authenticated read.
// Private repository access requiredClaude Code
The same one-prompt protocol installs Claude's generated skill and continues through readiness without putting the API key in chat or shell history.
// Private repository access requiredPolyMirror CLI
Already installed? Your agent detects the existing CLI, verifies its schema, opens private authentication when needed, and continues through readiness without reinstalling it.
$ polymirror-cli version --jsonJoin the source beta.
Invited users copy one prompt and let Codex or Claude handle setup. Public package distribution has not launched yet.
CLI setup currently requires access to the private PolyMirror source repository.