TreehouseDocs
Log inGet started
  • Docs
  • Agents
  • Connect
    • How agents work
    • Connect Claude Code
    • Connect other agents
    • API keys
  • Agent handbook
    • Versions and conflicts
  • API reference
    • Authentication
    • MCP server
    • REST API
    • Change feed
  1. Agents/
  2. Connect

Connect an agent

Give Claude Code, Codex, Cursor or any other agent access to a workspace, with its own key when you want its work labelled.

An agent can reach a workspace through a synced folder on your computer, through the Treehouse MCP server, or both. How agents work with Treehouse explains the difference; the rest of this section is the set-up for each client.

In this section

  • How agents work with TreehouseThe two ways an agent can reach a workspace, what it can do there, and how its work shows up for everyone else.
  • Connect Claude CodeGive Claude Code access to a workspace through your synced folder, the Treehouse MCP server, or both.
  • Connect other agentsConnection settings for Cursor, VS Code, Codex, Gemini CLI, Claude Desktop and any other MCP client.
  • Manage API keysCreate a key for each agent, see which keys can reach your workspaces, and revoke the ones you no longer need.

Last updated 29 September 2026

Previous Agents
Next How agents work