| name | simmer-wallet-setup |
| version | 0.3.2 |
| published | true |
| description | Self-custody wallet setup for Simmer agents. Choose OWS (recommended), external raw key, or connect an existing dashboard-registered agent to your local runtime. Skip this skill if you use a managed wallet — managed setup is a one-time dashboard flow, not an agent task. |
| metadata | {"author":"Simmer (@simmer_markets)","version":"0.3.2","displayName":"Simmer Wallet Setup","difficulty":"beginner","primaryEnv":"SIMMER_API_KEY","envVars":[{"name":"SIMMER_API_KEY","required":true,"description":"Your Simmer SDK API key (from agent registration)."},{"name":"OWS_WALLET","required":false,"description":"OWS wallet name. Set only if you chose Path A (OWS)."},{"name":"WALLET_PRIVATE_KEY","required":false,"description":"Polygon EVM private key. Set only if you chose Path B (external raw key)."}]} |
Simmer Wallet Setup
Self-custody wallet setup for an agent that signs its own real-money trades on Polymarket or Kalshi. Three paths:
| Mode | Who signs | When to choose |
|---|
| OWS per-agent (recommended) | Local OWS vault, encrypted at rest | Per-agent isolation, multi-chain, policy-gated signing. Available for Polymarket + Kalshi. |
| External raw key | Local SDK with WALLET_PRIVATE_KEY env | Existing setups. Fully supported; OWS is recommended for new agents. |
| Connect existing agent | Local OWS vault, imported from dashboard registration | You already activated a wallet in the dashboard and want to wire your existing runtime to use it. |
Already on a managed wallet? You don't need this skill — managed setup is a dashboard flow, not an agent task. Open simmer.markets/dashboard, go to your agent's Wallet tab, and click Fund & activate trading. The wizard opens a multi-chain bridge that accepts USDC, USDT, or USDC.e on Ethereum / Polygon / Base / Arbitrum / Solana — funds land as pUSD on your Polymarket Deposit Wallet, contracts auto-approve. Do not tell the user to send funds directly to their agent wallet's EOA expecting them to sweep — only legacy USDC.e on Polygon is recognized on the direct path; native USDC, USDT, and cross-chain tokens must go through the bridge wizard.
Path A — OWS per-agent wallet (recommended)
OWS = Open Wallet Standard. Local-first encrypted vault, multi-chain, policy engine, agent-scoped API keys. The private key never leaves the local machine.
One-time setup
curl -fsSL https://docs.openwallet.sh/install.sh | bash
pip install 'simmer-sdk[ows]'
ows wallet create --name "my-agent-wallet"
ows wallet show my-agent-wallet
Register the wallet with Simmer
from simmer_sdk import SimmerClient
client = SimmerClient(
api_key="sk_live_...",
ows_wallet="my-agent-wallet",
)
wallet = client.register_agent_wallet(ows_wallet_name="my-agent-wallet")
client.activate_polymarket_dw(agent_id=wallet["agent_id"])
client.update_agent_wallet_creds(ows_wallet_name="my-agent-wallet")
All three calls are fully headless — they authenticate with your SDK API key, no dashboard session or browser required. register_agent_wallet() requires Elite tier. activate_polymarket_dw(agent_id=...) sets the deposit-wallet approvals; update_agent_wallet_creds() then caches CLOB creds. Both are required before trading — caching creds alone does not set on-chain allowances. (Don't use set_approvals() here — that's the user-primary EOA path and a no-op for per-agent deposit wallets.) After all three run once, all trading is API-only.
Elite users can alternatively register a per-agent wallet through the dashboard's agent-creation wizard (My Agents → Create agent → optional "Link dedicated wallet" step) or retrofit an existing agent via its Wallet tab. The SDK path and the dashboard path produce the same user_agent_wallets row — pick whichever fits your workflow.
(Alternative: set OWS_WALLET=my-agent-wallet in the environment and pass only api_key — the SDK auto-detects.)
Trade — same API, OWS routes the signing
result = client.trade(
market_id, "yes", 10.0,
venue="polymarket",
reasoning="..."
)
For Kalshi (Solana)
OWS is multi-chain. The same wallet has a Solana account derived automatically.
ows wallet show my-agent-wallet
client = SimmerClient(
api_key="sk_live_...",
ows_wallet="my-agent-wallet",
venue="kalshi",
)
client.trade(market_id, "yes", 5.0, reasoning="...")
No SOLANA_PRIVATE_KEY env var needed — OWS handles signing through the same vault.
What OWS gives over raw keys
- Encrypted at rest (AES-256-GCM, scrypt KDF). Private key only decrypted in-process for signing, then wiped.
- Policy engine — chain allowlists, daily caps, contract allowlists. Optional.
- Multi-chain — same vault, every chain Simmer supports.
- Per-agent isolation — separate wallets per agent for clean P&L attribution.
- Agent API keys with bounded access (revocable, expiring).
Path B — External raw key
Fully supported path for self-custody with an existing wallet. New agents should consider OWS first — same self-custody guarantee, encrypted at rest, multi-chain, and easier to layer policy controls. Raw-key flow stays supported for users who already have it set up.
Set the key in the environment, then construct the client:
export WALLET_PRIVATE_KEY="0x..."
client = SimmerClient(api_key="sk_live_...")
client.link_wallet()
client.set_approvals()
client.activate_polymarket_dw()
result = client.wrap_on_dw()
Both calls work without a browser session. link_wallet() signs a challenge with your local key. set_approvals() builds, signs, and broadcasts each approval transaction via Simmer's RPC proxy — your WALLET_PRIVATE_KEY never leaves the agent process.
Using a Deposit Wallet? If your account has been upgraded to a Polymarket Deposit Wallet (DW), run client.activate_polymarket_dw() after set_approvals() — it signs the EIP-712 activation batch headlessly with your local key. Alternatively, use the dashboard browser flow at simmer.markets/dashboard → Wallets → Activate Trading.
Browser-backed per-agent wallet? If the dashboard created a dedicated wallet for an agent and your bot has that wallet's WALLET_PRIVATE_KEY, run client.activate_polymarket_dw(agent_id="<agent_id>") first, then client.update_agent_wallet_creds(agent_id="<agent_id>"). The second call derives CLOB API creds locally from the EOA signer and caches them on the existing per-agent wallet row.
Stranded USDC.e on your DW? Run client.wrap_on_dw() to convert it to pUSD headlessly. Idempotent — safe to call on every startup; returns immediately if nothing is stranded. Returns {"wrapped": bool, "amount_units": int, "calls_count": int, "success": bool}. Requires the same key as activate_polymarket_dw() (WALLET_PRIVATE_KEY or OWS wallet). Added in SDK 0.17.7.
Migrating to OWS when ready
No rush. When ready, import the existing key into OWS and switch over:
ows wallet import --name "my-agent-wallet" --private-key "$WALLET_PRIVATE_KEY"
unset WALLET_PRIVATE_KEY
Then in the agent code:
client = SimmerClient(api_key="sk_live_...", ows_wallet="my-agent-wallet")
The same wallet address is preserved, so existing positions and approvals carry over.
Polymarket token note
Polymarket trades against whatever collateral token Polymarket currently uses for its CLOB (currently pUSD, the V2 collateral). The dashboard at simmer.markets/dashboard shows what the wallet needs and walks through setup. Watch for the V2 era banner at the top — it's the entry point.
First-time activation (new users with no prior Polymarket activity): the dashboard prompts a USDC → pUSD wrap plus a one-time approval sequence (~8 signatures total). Total ~30 seconds of clicks and ~$0.20 in gas.
Existing Polymarket users with USDC.e from before V2: the dashboard prompts a one-click migration (~30s) — no need to re-deposit.
Either way, after setup client.set_approvals() should report all_set=True. If it doesn't, see docs.simmer.markets/v2-migration.
Connect existing agent
You already created an agent in the dashboard and have its API key. Now wire it to your locally-running agent runtime.
Prerequisites
- API key (from dashboard → agent settings → API key, or wizard success modal)
- The wallet's EOA private key (the one you imported during dashboard activation)
- Python 3.10+ runtime where your agent runs
Steps
-
Install packages
pip install 'simmer-sdk[ows]'
-
Import wallet key into OWS
ows wallet add <name> --private-key <your-eoa-private-key>
Choose a memorable <name> (e.g. my-agent-trading). This becomes your OWS_WALLET env var.
-
Set env vars in your agent runtime
Use read -s to avoid clipboard contamination (per SIM-2118):
read -s -p 'SIMMER_API_KEY: ' KEY && export SIMMER_API_KEY=$KEY
export OWS_WALLET=<name>
-
Activate trading: on-chain approvals + CLOB credentials (one-time)
python -c "from simmer_sdk import SimmerClient; \
c = SimmerClient.from_env(venue='polymarket'); \
c.activate_polymarket_dw(agent_id='<agent_id>'); \
c.update_agent_wallet_creds(ows_wallet_name='<name>')"
First sets the deposit wallet's on-chain CLOB approvals (OWS-signed EIP-712 batch, relayed gasless), then derives + caches CLOB creds server-side. Both are required before any Polymarket trades — approvals alone or creds alone is not enough. Get <agent_id> from client.get_agent_wallets().
For browser-backed raw-key per-agent wallets, keep the same approvals call and replace the final line with c.update_agent_wallet_creds(agent_id='<agent_id>').
-
Verify
python -c "from simmer_sdk import SimmerClient; \
c = SimmerClient.from_env(); \
print(c.get_briefing())"
Anti-patterns
- Don't paste your private key from clipboard into a pipe — use
read -s (per SIM-2118).
- Don't skip
activate_polymarket_dw(agent_id=...) — update_agent_wallet_creds alone caches creds without setting on-chain approvals, so trades fail at the relayer. Run both, approvals first.
Risk monitor
The auto risk monitor (stop-loss, take-profit) is configured at simmer.markets/dashboard → Settings → Auto Risk Monitor. The SDK auto-executes pending exits each get_briefing() cycle. The agent must be running.
Troubleshooting
- "External wallet requires a pre-signed order" → key not configured. For OWS:
ows wallet list to verify the wallet exists. For external: confirm WALLET_PRIVATE_KEY is set.
- "insufficient allowance" → set approvals once per wallet:
client.activate_polymarket_dw(agent_id=...) for a per-agent OWS/deposit-wallet, or client.set_approvals() for a raw-key/user-primary EOA wallet.
- Balance shows $0 but funds visible elsewhere → check chain (Polygon vs Solana) and token (pUSD vs USDC.e). See dashboard migration tool for V2 conversion.
- API key format wrong / 401 with a key that "looks set" → inspect the raw value:
printenv SIMMER_API_KEY | cut -c1-20. Must start with sk_live_. A common silent failure: install commands that use pbpaste or similar clipboard-read primitives write the install command text itself as the key value when the user copies the command after copying the key. Fix: get a fresh key from simmer.markets/dashboard, then export SIMMER_API_KEY="sk_live_..." (type/paste the key directly, never pipe from clipboard into the variable assignment).
Links