# T3 Code

Coding agents

# Connect T3 Code

Multi-agent control plane for Claude Code, Codex & OpenCode. Point it at AgentKeyRoute so every request follows your governance profile and is recorded.

Get a key with the right protection

In the console, open [Connect an app](https://app.agentkeyroute.com/connect) and pick this tool. AgentKeyRoute recommends a governance profile, creates the key, and shows these same steps with your key and an allowed model filled in, plus a live test.

## Setup

1.  Install T3 Code

    ```
    pip install openai
    ```

2.  Point it at the gateway

    ```
    # Point T3 Code's Claude Code driver at AgentKeyRoute (~/.claude/settings.json):
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://gateway.agentkeyroute.com",
        "ANTHROPIC_AUTH_TOKEN": "<your API key>",
        "ANTHROPIC_MODEL": "claude-sonnet"
      }
    }

    # Or apply in 1 command:
    mkdir -p ~/.claude && cat > ~/.claude/settings.json <<'EOF'
    {
      "env": {
        "ANTHROPIC_BASE_URL": "https://gateway.agentkeyroute.com",
        "ANTHROPIC_AUTH_TOKEN": "<your API key>",
        "ANTHROPIC_MODEL": "claude-sonnet"
      }
    }
    EOF
    ```

    Replace `<your API key>` with your AgentKeyRoute key. `claude-sonnet` is an example: use a model your key may use (`GET /v1/models` lists them).

3.  Check it works

    Start T3 Code and ask it something small, such as "list the files in this folder". The request appears in [Requests](https://app.agentkeyroute.com/requests) with the policy decision, the model that answered and what was redacted.


## Good to know

-   The wizard marks this as a coding tool and adds **Source code** to its data. The recommended profile is usually [Coding agents & developer tools](https://docs.agentkeyroute.com/profiles).
-   It acts autonomously, so it's registered as an autonomous workload. High-risk autonomous use waits for a person on risky requests.
-   It uses the Anthropic API, so the base URL is the gateway address **without** `/v1`.
-   If policy doesn't allow the model you chose for some data, the gateway answers with an allowed one. `X-AIGov-Model` names it.
-   Refused? See [Why was a request blocked?](https://docs.agentkeyroute.com/troubleshooting)

## Related

[All coding agentsTerminal and desktop agents that write code](https://docs.agentkeyroute.com/connect/coding-agents)[HeadersAttribute requests to people and read decisions.](https://docs.agentkeyroute.com/api/headers)

---
Source: https://docs.agentkeyroute.com/connect/t3-code · Markdown: https://docs.agentkeyroute.com/connect/t3-code.md
