# Connect OpenCode

Add the remote server at https://leadsagent.io/mcp/v1. Use the exact [OpenCode API-key setup instructions](https://leadsagent.io/documentation/setup/opencode.md?method=key). OpenCode V1 and V2 use different configuration locations. Keep the key in an environment variable.

Official guide: [OpenCode MCP servers](https://opencode.ai/v2/docs/mcp-servers).

[All documentation](https://leadsagent.io/documentation/quickstart)
[OpenAPI](https://leadsagent.io/documentation/openapi.json)
