# Integrations

Use Onekey from the tools you already work in. Two things exist today, and the guides use only those:

- **The REST API**: `GET https://api.onekey.dev/v1/{platform}/{endpoint}` with an `x-api-key` header. It works from anything that can make an HTTP request.
- **The [hosted MCP server](https://onekey.dev/docs/mcp.md)**: `https://api.onekey.dev/mcp`, with eleven tools an AI agent can use to find endpoints and fetch data. It authenticates with your API key in a header; there is no OAuth sign-in.

| Guide | Use it when | Path |
| --- | --- | --- |
| [n8n](https://onekey.dev/docs/integrations/n8n.md) | You want a scheduled or webhook-driven workflow with no code. | HTTP Request node and Webhook node (REST), or the MCP Client Tool node for an AI agent. |
| [LangChain](https://onekey.dev/docs/integrations/langchain.md) | You are building a Python or JavaScript agent. | `langchain-mcp-adapters` / `@langchain/mcp-adapters` against the hosted MCP server. |
| [Vercel AI SDK](https://onekey.dev/docs/integrations/vercel-ai-sdk.md) | You are building a TypeScript app or route handler. | `createMCPClient` from `@ai-sdk/mcp` against the hosted MCP server. |
| [Claude Code](https://onekey.dev/docs/integrations/claude-code.md) | You want your coding assistant to fetch public data. | `claude mcp add --transport http`. |

## Before any guide

1. [Get a key](https://onekey.dev/docs/authentication.md). 1,000 free credits cover the open-platform endpoints. Hard-to-reach platforms (X, TikTok, Instagram, Reddit, and others marked on their page) need a verified email and a purchased pack.
2. Put it in an environment variable named `ONEKEY_KEY`. Never paste it into a prompt, a shared workflow or a public repo.
3. For an agent that will run unattended, create a **separate key with a [credit limit](https://onekey.dev/docs/key-limits.md)**, so the most it can spend is a number you chose.

## What the guides do not cover

The pages describe only what the API does today. They do not use AI enrichment beyond pointing at [Labels](https://onekey.dev/docs/labels.md), and they do not use universal search or the reports; see [those pages](https://onekey.dev/docs/universal-search.md). Every guide has an **Untested** section saying which snippets were checked against the vendor's documentation but not run.

## Related

- [Monitors](https://onekey.dev/docs/monitors.md): have Onekey call your webhook when data changes instead of polling.
- [MCP server](https://onekey.dev/docs/mcp.md): connection details, the eleven tools and what results and errors look like.
- [Credits & pricing](https://onekey.dev/docs/credits.md): every price is flat and printed on the endpoint's page.
