How to trade with Kimi (Moonshot AI)
Short answer: Use Kimi Code, Moonshot's coding agent (CLI, desktop app or VS Code extension). Add
https://api.openfinance.tech/agent/mcpto~/.kimi-code/mcp.jsonwith your OpenFinance key inheaders, or leave the key out and run/mcp-config login openfinanceto sign in with OAuth. Then ask Kimi for the BTC price to check it works. The kimi.com web app supports MCP through marketplace plugins, but its help pages don't describe adding your own MCP server by URL.
MCP URL: https://api.openfinance.tech/agent/mcp · HTTP streamable · works with any MCP client · one URL, no SDK · no KYC on OpenFinance · fund with a debit card.
Setup in 60 seconds: get your OpenFinance key and start trading all markets.
How Kimi connects to tools
Kimi Code is an MCP client. It connects to remote servers over HTTP, which its docs recommend for new servers; the older HTTP+SSE transport is for legacy servers. The CLI and the desktop app share one config file, ~/.kimi-code/mcp.json, and a project can add its own .kimi-code/mcp.json. An entry with a url is an HTTP server, and headers adds static headers to every request, so the x-api-key header works. OAuth also works: run /mcp-config login <server-name> and approve in the browser. In the VS Code extension, open the gear menu → MCP Servers, pick http, paste the URL and use the authorize button. Kimi Code needs a paid Kimi membership (Plus or above).
Set up Kimi in under 60 seconds
- Install Kimi Code and sign in with
kimi login(Plus plan or above). - Open (or create)
~/.kimi-code/mcp.jsonand add theopenfinanceblock below (put your key in place of open_xxxxx). - Prefer no key in the file? Leave out
headersand run/mcp-config login openfinanceto sign in with OAuth. - Start a new session (saved changes apply to new sessions) and run
/mcpto check that OpenFinance is connected. - Ask Kimi for the BTC price through OpenFinance to confirm the tools work.
{
"mcpServers": {
"openfinance": {
"url": "https://api.openfinance.tech/agent/mcp",
"headers": { "x-api-key": "open_xxxxx" }
}
}
}
Get your OpenFinance key at openfinance.tech (sidebar → External AI), then fund it with a debit card or crypto. Don't use the old kimi mcp add commands you may see online: they belong to the archived Kimi CLI, not Kimi Code.
Keep approvals on
Kimi Code asks before each MCP call that no permission rule covers. For trading, keep it that way:
- Don't pick Approve for this session for OpenFinance tools, and don't add an allow rule such as
mcp__openfinance__*. - Don't start Kimi with
--yoloor--auto. In Ask When Needed mode Kimi runs MCP tools without asking. - OpenFinance also tells the agent to show you a summary of each order and wait for you to reply "confirm" before it acts.
What Kimi can trade through OpenFinance
Kimi can trade crypto spot and leveraged perps on Hyperliquid, onchain stocks such as TSLA and NVDA, forex, Solana and Base memecoins, and Polymarket prediction markets, all with one OpenFinance account. Options are available through your own IBKR or Robinhood account connected in the OpenFinance app. The full market list is on the hub page.
Prompts to try in Kimi
- “Using OpenFinance, what's my balance, and what are BTC, ETH and SOL doing today?”
- “Using OpenFinance, go long BTC 5x with $50 on Hyperliquid and set a stop 4% below entry.”
- “Using OpenFinance, buy $25 of tokenized NVDA and $25 of TSLA.”
- “Using OpenFinance, what are the Polymarket odds on the next Fed decision? Bet $10 on the favourite.”
- “Using OpenFinance, show my open positions as a table.”
FAQ
Can Kimi trade crypto?
Yes, through Kimi Code once OpenFinance is added as an MCP server. Kimi calls OpenFinance's tools to quote, buy, sell and open perps.
Does the Kimi chat app support custom MCP servers?
The kimi.com web app supports MCP through marketplace plugins, but Moonshot's help pages don't describe adding your own MCP server by URL. Use Kimi Code (CLI, desktop app or VS Code) instead.
Where is the Kimi Code MCP config?
~/.kimi-code/mcp.json for all projects, or .kimi-code/mcp.json in a project folder. The project entry wins when both use the same name. You can also run /mcp-config to add, edit or delete servers.
API key or OAuth?
Either. Put x-api-key in headers, or leave headers out and run /mcp-config login openfinance to sign in with OAuth. If the browser sign-in doesn't open, use the key.
Do I need a paid plan?
Yes. Per Moonshot, Kimi Code is included from the Plus plan up; the Go plan has no coding quota.
How do I stop Kimi trading?
Remove the openfinance entry from mcp.json, or revoke the key or sign-in in OpenFinance. An agent can't send funds to anyone else's address with your key; it can only move funds between your own wallets.
Related
- Make any AI agent trading-compatible: every agent and market in one place
- Trade with Qwen, Trade with DeepSeek, Trade with Trae, Trade with Cherry Studio
- Hyperliquid MCP server
- Polymarket MCP server
- Security: what an agent can and can't do with your key
Sources: https://www.kimi.com/code/docs/en/kimi-code-cli/customization/mcp.html, https://www.kimi.com/code/docs/en/kimi-code-for-vscode/customization.html, https://www.kimi.com/code/docs/en/kimi-code/membership.html
Trading involves risk, especially with leverage and memecoins. Start small.