Agents
Let your AI trade your evaluation.
Give Claude, ChatGPT, Gemini, Grok, Mistral or Cursor a key to one account. It reads the rules, sizes the trade, places it and tells you how much room is left. Same engine, same rules as the terminal.
Logos are trademarks of their owners. Works with any MCP-compatible agent.
Connect your AI agent in three steps.
- 01
Get a key
Open your dashboard → API & Agents. Pick one account and a scope: read to watch, trade to place orders. Copy the key: it is shown once.
The key stays in this page. It is not saved or sent anywhere, except to the OpenProp API when you press Test.
- 02
Copy the config
Choose your AI below (Claude, ChatGPT, Cursor and more). Your key is already in it. Paste it where the panel says.
- 03
Test the connection
Check that the key works before you ask your AI anything.
Your AI, your config.
Your key is filled in automatically once pasted in step 01. API address: https://<server>/pf-api
Claude Desktop → Settings → Developer → Edit config. Download openprop_mcp.py (one Python file, no install), then add:
{
"mcpServers": {
"openprop": {
"command": "python3",
"args": ["/path/to/openprop_mcp.py"],
"env": {
"OPENPROP_API_KEY": "opk_your_key",
"OPENPROP_API_URL": "{{API}}"
}
}
}
}Restart Claude Desktop. The OpenProp tools appear in the tools menu.
In a terminal:
claude mcp add --transport http openprop {{API}}/mcp --header "Authorization: Bearer opk_your_key"ChatGPT → Settings → Apps & Connectors → Advanced → Developer mode on → Create. Name it OpenProp, no authentication, and use this URL:
{{API}}/mcp?key=opk_your_keyThe key sits in the URL here: use a key on one account only, and revoke it if you share the chat setup.
Add to ~/.gemini/settings.json:
{
"mcpServers": {
"openprop": {
"httpUrl": "{{API}}/mcp",
"headers": { "Authorization": "Bearer opk_your_key" }
}
}
}Grok through the xAI API, with OpenProp as a remote MCP tool:
"tools": [{
"type": "mcp",
"server_label": "openprop",
"server_url": "{{API}}/mcp",
"authorization": "opk_your_key"
}]Le Chat → Intelligence → Connectors → Add connector → Custom MCP. Paste this URL:
{{API}}/mcp?key=opk_your_keyAdd to ~/.cursor/mcp.json (or .cursor/mcp.json in a project):
{
"mcpServers": {
"openprop": {
"url": "{{API}}/mcp",
"headers": { "Authorization": "Bearer opk_your_key" }
}
}
}Plain HTTPS for your own bot. Full reference in openapi.json.
curl -H "Authorization: Bearer opk_your_key" {{API}}/v1/rules_status
curl -X POST {{API}}/v1/orders \
-H "Authorization: Bearer opk_your_key" -H "Content-Type: application/json" \
-d '{"market":"BTC","side":"buy","size_usd":2000,"stop_loss":95000,"client_order_id":"my-bot-0001"}'Same client_order_id twice never sends a second order. Resume events after a restart with /v1/events?since=<cursor>.
What it looks like.
Four things people ask their agent. It answers from your real account, not from memory.
Where you stand
Ask for the state of the account whenever you like. It reads your equity, the floor and the target, and tells you how much room is left.
Where am I on the evaluation?
get_rules_statusYou are above the floor with room to spare, and still short of the target. Nothing is open right now, so the full cap is available on BTC. Want the exact numbers?
A second opinion on a trade
Point at a position or an idea. The agent looks at the entry, the stop and the market, and tells you what it thinks.
I am long BTC. Does the stop make sense?
get_positions, get_marketsYour stop sits just under the recent low, so a normal dip will not take you out. But if it does hit, it costs a fair share of your remaining room. I would shrink the size a little or tighten the stop. Your call.
A plan, built in the chat
Describe what you want. The agent builds a strategy around your rules and adjusts it as you talk.
I want to pass this week without getting close to the floor. Build me a plan.
get_evaluation, get_rules_statusSmall size, one market, a stop on every entry, and no more than a quarter of your remaining room at risk per trade. I stop opening trades if we get close to the floor. Want me to adjust anything before we start?
An order, once you say go
The agent prepares the trade with its stop and waits for your answer. Only a trade key can send it, and the engine still refuses anything that breaks a rule.
Yes, go.
place_orderDone. Market buy with the stop attached. It filled, fees included, and your position is open on BTC:long. Room left before the floor is updated just above.
Example conversations. Wording varies with the AI you use. Not financial advice: the agent can be wrong, and every order is yours.
Same rules. Your responsibility.
- The agent follows the account rules. Floor at size − 3%, position cap per market, fees and fills on the real Lighter book. Orders that break a rule are refused.
- You stay responsible. Every order the agent sends is yours. An AI can be wrong; watch it and revoke the key at any time.
- One key, one account. A key reaches a single evaluation, funded or practice account. Read-only keys cannot trade.
- Never a withdrawal. No key can request a payout, withdraw or change an address. Those stay in your dashboard, behind your own sign-in.
For developers and agents.
- openapi.jsonREST API v1: account, rules_status, evaluation, pricing, positions, orders, close, markets, events.
- skill.mdRules and safe workflow. Give it to your agent as instructions.
- llms.txtSite summary for language models.
- openprop_mcp.pyMCP server for stdio clients. One file, Python 3.9+, no dependency.
Limits per key: 5 requests/s, 2 orders/s. Usage is logged and visible in your dashboard.
Tools your agent gets
| Tool | What it does |
|---|---|
get_account | Size, equity, balance, P&L, floor, target. |
get_rules_status | Room left before the floor and to the target, position cap per market. |
get_evaluation | The rules your account was bought with: size, risk level, max loss, target, your split, price paid. They never change. |
get_pricing | Today's evaluation prices and the pass rate they follow. Read-only. |
get_positions, get_orders, get_history, get_markets | Open trades, open orders, past fills, market data. |
place_order, cancel_order, close_position | Trading, only with a trade key. Same checks as the terminal. |
When something goes wrong
| Message | What to do |
|---|---|
| 401 · unauthorized | The key is missing or mistyped. Copy it again, with the opk_ prefix. |
| 401 · revoked / 410 · gone | The key was revoked, or its account ended. Create a new key. |
| 403 · forbidden_scope | Read-only key. Create a trade key to place orders. |
| 429 · rate_limited | Too many calls. Wait a second. |
| 422 · rejected | A rule refused the order (floor, position cap, market). Read rules_status. |
| 504 · engine_timeout | The order may have gone through. Read your orders before sending it again. |
No key can withdraw, request a payout or change an address. Those stay in your dashboard, behind your own sign-in.