---
title: "Connect an agent"
description: "Give Claude Code, Codex, Cursor or any other agent access to a workspace, with its own key when you want its work labelled."
canonical_url: "https://trytree.house/docs/agents/connect"
last_updated: "2026-09-29"
---

# 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](https://trytree.house/docs/agents/connect/how-agents-work) explains the difference; the rest of this section is the set-up for each client.

## In this section

- [How agents work with Treehouse](https://trytree.house/docs/agents/connect/how-agents-work): The two ways an agent can reach a workspace, what it can do there, and how its work shows up for everyone else.
- [Connect Claude Code](https://trytree.house/docs/agents/connect/claude-code): Give Claude Code access to a workspace through your synced folder, the Treehouse MCP server, or both.
- [Connect other agents](https://trytree.house/docs/agents/connect/other-agents): Connection settings for Cursor, VS Code, Codex, Gemini CLI, Claude Desktop and any other MCP client.
- [Manage API keys](https://trytree.house/docs/agents/connect/api-keys): Create a key for each agent, see which keys can reach your workspaces, and revoke the ones you no longer need.
