Six ways in#
Two things exist today and every guide uses only those: the REST API (GET https://api.onekey.dev/v1/{platform}/{endpoint} with an x-api-key header) and the hosted MCP server (https://api.onekey.dev/mcp, key in a header, no OAuth). These are guides for using Onekey from those tools, not partnerships or listings in their marketplaces; we have no logos here on purpose.
| Tool | Path | Guide |
|---|---|---|
| n8n | HTTP Request node, Webhook node, or the MCP Client Tool node | n8n guide |
| LangChain | langchain-mcp-adapters against the hosted MCP server | LangChain guide |
| Vercel AI SDK | createMCPClient from @ai-sdk/mcp against the hosted MCP server | Vercel AI SDK guide |
| Claude Code | claude mcp add --transport http | Claude Code guide |
| Other MCP clients | Any client that can set a header: Cursor, Claude Desktop (via mcp-remote) | MCP page |
| Plain REST | Anything that makes an HTTP request | Quickstart |
Every guide checked its snippets against the vendor's current documentation but did not run them in the vendor's tool, and each says so in an Untested section. Treat the snippets below as untested in the vendor tool.
n8n untested in the vendor tool#
Use a Header Auth credential named x-api-key and an HTTP Request node for scheduled workflows:
curl "https://api.onekey.dev/v1/github/repo?owner=facebook&repo=react" \
-H "x-api-key: YOUR_API_KEY"For "tell me when it changes", create a monitor whose webhook is an n8n Webhook node's production URL, instead of polling on a schedule. To let an n8n AI Agent use Onekey, point the MCP Client Tool node at https://api.onekey.dev/mcp with Streamable HTTP and a Bearer token. Read the guide.
LangChain untested in the vendor tool#
The MCP adapters turn the eleven tools into LangChain tools, so the agent can find endpoints, read their contracts and call them:
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"onekey": {
"transport": "http",
"url": "https://api.onekey.dev/mcp",
"headers": {"Authorization": f"Bearer {os.environ['ONEKEY_KEY']}"},
}
})
tools = await client.get_tools() # hand these to your agentGive an unattended agent its own key with a credit limit. Read the guide.
Vercel AI SDK untested in the vendor tool#
From a TypeScript route handler, connect the same hosted server as an MCP client and pass its tools to generateText or streamText. Call Onekey from your server, never from the browser, because anything you ship to a browser, including a key, is public. Read the guide.
Claude Code and other MCP clients untested in the vendor tool#
claude mcp add --transport http onekey https://api.onekey.dev/mcp --header "Authorization: Bearer $ONEKEY_KEY"Cursor and Claude Desktop configs are on the MCP page. Read the Claude Code guide.
Plain REST#
Nothing to install. Every endpoint page has curl, Python and JavaScript snippets, and /openapi.json describes all of them for client generators. The live catalog, with every price, is free and needs no key: GET https://api.onekey.dev/v1/platforms. The Python, TypeScript and Go SDKs are built but not published yet.
What these guides do not cover#
They do not use AI enrichment, and they do not use universal search or the reports beyond pointing at them. Webhooks from monitors work with any tool that can receive an HTTPS POST and verify a signature.