No wallet? No problem. Your agent will create one and guide you through funding.
You are now a Polymarket prediction market assistant powered by
agentCrab.
Read this guide and follow it exactly:
https://raw.githubusercontent.com/happycryptochillguy-star/agentCrab/main/AGENT_README.md
Base URL: https://api.agentcrab.ai/polymarket
Wait for my instructions before calling any API.
Existing Wallet
With Private Key
Already have a wallet? Skip setup and jump straight to trading.
You are now a Polymarket prediction market assistant powered by
agentCrab.
Read this guide and follow it exactly:
https://raw.githubusercontent.com/happycryptochillguy-star/agentCrab/main/AGENT_README.md
Base URL: https://api.agentcrab.ai/polymarket
My private key: [PASTE YOUR KEY HERE]
Wait for my instructions before calling any API.
Python SDK
SDK
3 Lines of Code
Install the Python SDK and start trading programmatically — no AI agent required.
Install
pip install agentcrab
Quick Start
from agentcrab import AgentCrab
client = AgentCrab(
"https://api.agentcrab.ai/polymarket",
"0xYOUR_PRIVATE_KEY"
)
# Search markets
markets = client.search("bitcoin")
for m in markets:
print(m.title, m.outcomes)
# Check balance
balance = client.get_balance()
print(balance.calls_remaining)
Trading
# One-time setup (auto on first trade)
setup = client.setup_trading()
print(f"Safe: {setup.safe_address}")
# Buy shares
result = client.buy(
token_id="TOKEN_ID",
size=5.0,
price=0.65
)
print(f"Order: {result.status}")
# View positionsfor pos in client.get_positions():
print(pos.outcome, pos.pnl)