Connect an agent
Give Claude Code, Codex, Cursor or any other agent access to a workspace, signed in through your browser and labelled with a name you choose.
An agent can reach a workspace through a synced folder on your computer, through the Treehouse MCP server, or both. Over MCP, most agents sign in through your browser: you add the server URL, approve the agent and give it a name, with no key to copy. Agents that can't open a browser use an API key instead.
How agents work with Treehouse explains the difference; the rest of this section is the set-up for each client, and how to manage the agents and keys you've connected. If you're an agent setting up someone's brand-new workspace, start with set up a new workspace.
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.
- Set up a new workspace for someoneWritten for agents. Connect a person's new workspace to their computer, doing as much of the work yourself as you can, then help them organise it.
- Connect Claude CodeGive Claude Code access to a workspace through your synced folder, the Treehouse MCP server, or both.
- Connect other agentsConnect Cursor, VS Code, Codex, Gemini CLI, Claude Desktop, claude.ai, ChatGPT or any other MCP client by signing in, or with an API key.
- Manage connected agentsSee which agents have signed in to Treehouse as you, rename how their work is labelled, and disconnect the ones you no longer use.
- Manage API keysCreate a key for the sync CLI or an agent that can't sign in through a browser, see what each key can reach, and revoke the ones you no longer need.
Last updated