---
title: "Gruntas in T3 Code — one instance per account"
canonical_url: "https://gruntas.com/docs/t3-code"
last_updated: "2026-11-26T16:59:18.586Z"
meta:
  description: "gruntas t3 writes a launcher per Claude Code and Codex account. Add each as a T3 Code instance, and its sessions run on that account, through gruntas, while T3 Code keeps its approvals, access modes, models and threads."
  "og:description": "gruntas t3 writes a launcher per Claude Code and Codex account. Add each as a T3 Code instance, and its sessions run on that account, through gruntas, while T3 Code keeps its approvals, access modes, models and threads."
  "og:title": "Gruntas in T3 Code — one instance per account"
---

**Docs**

# **Gruntas in T3 Code**

One command writes a launcher per account. Add each as a T3 Code instance, and its Claude Code or Codex sessions run on that account, through gruntas, while T3 Code works as it did.

[The CLI reference](https://gruntas.com/docs/cli) [T3 Code on GitHub](https://github.com/pingdotgg/t3code)

**Setup**

## **One command, then one instance per account.**

1 — write a launcher per account

```
$ gruntas t3
```

2 — what it prints

```
In T3 Code, add one instance per account:

Claude · work
  Binary path  /home/you/.gruntas/t3/claude-work
  Home path    /home/you/.gruntas/accounts/claude-work

Codex · personal
  Binary path  /home/you/.gruntas/t3/codex-personal
  Home path    /home/you/.gruntas/accounts/codex-personal
```

T3 Code runs Claude Code through the Claude Agent SDK and Codex as `codex app-server`, and each of its instances names its own binary. `gruntas t3` writes one launcher per connected Claude Code and Codex account into `~/.gruntas/t3/`. Each runs `gruntas run <harness> --account <name> --passthrough`: the harness on that account, with T3 Code's arguments, input, output and exit code passed straight through.

## Add each instance

In T3 Code, open **Settings → Providers → Add provider**, once per account, and give it the three values `gruntas t3` printed:

1. **Provider**: Claude or Codex, the account's harness.
2. **Identity**: the name, such as `Claude · work`, as the **Label**. T3 Code lists the instance by it, with the harness's own models. Give the **Instance ID** a short name of your own, such as `claude_work`.
3. **Config**: the launcher, such as `~/.gruntas/t3/claude-work`, as the **Binary path**, and the account's config home as the **CLAUDE\_CONFIG\_DIR path** (Claude) or the **CODEX\_HOME path** (Codex). T3 Code reads that home itself for skills, usage and resuming a thread, so it has to be the account's. Leave the other fields as they are, and choose **Add instance**.

Rerun `gruntas t3` after connecting, renaming or removing an account: it rewrites only what changed and removes the launchers of accounts that are gone. Then add, change or remove the matching instance in T3 Code, which gruntas leaves to you. Nothing is signed in inside T3 Code. An account that isn't signed in fails when T3 Code starts it, with one line naming `gruntas connect`.

## What gruntas adds

- **Registration.** Each session registers with gruntas as an attended session on its account, and shows in `gruntas status` beside your other sessions. A Codex session registers from its first turn, once its hooks are approved (below).
- **The paste guard.** A `gh pr` or `gh issue` call whose body carries a bare gruntas card link is refused, with the block to paste instead.
- **The gruntas tools.** The gruntas MCP tools and skill, as in any gruntas session.
- **Usage.** A Claude Code account's usage windows are reported, as from a terminal session.
- **The gruntas home, fenced off.** The launch's sandbox keeps the session out of `~/.gruntas`, where gruntas keeps your keys and sessions. For Claude Code it needs bubblewrap on Linux (Seatbelt is built into macOS), and a Claude Code instance won't start without it. For Codex, see the known gap below.

## What stays T3 Code's

Gruntas changes nothing in how T3 Code works:

- **Approvals.** The harness's permission prompts reach T3 Code as they always have, and gruntas never rewrites a tool call.
- **Access modes.** Supervised, Auto-accept edits, Auto and Full access work as they did. In a Claude Code session, gruntas's own refusals, such as reading the gruntas home, still hold; for Codex, see the known gap below.
- **Models.** Each instance offers the harness's own models in T3 Code's picker.
- **Threads.** T3 Code keeps them, and resumes them from the account's home.

## Codex: approve the hooks once

Codex runs a plugin's hooks only once you have approved them, and T3 Code has no terminal to approve them in. Until then a Codex session in T3 Code runs without them: it stays unregistered, out of `gruntas status`, and the paste guard doesn't run. Once per Codex account:

1. Install the gruntas plugin in the account, with the command below. While it is missing, the launcher also prints that command on its error output, once per account, which T3 Code may not show.
2. In a terminal, run `gruntas run codex --account <name>`, type `/hooks`, approve the gruntas hooks, and exit.

terminal, once per Codex account

```
CODEX_HOME=<account home> codex plugin marketplace add gruntas/gruntas
CODEX_HOME=<account home> codex plugin add gruntas@gruntas
gruntas run codex --account <name>
```

Repeat the second step after every gruntas plugin update: Codex asks again whenever the plugin changes. The approval is yours, made in Codex and kept in that account's own config; gruntas never writes it.

## Known gap: Codex isn't fenced off the gruntas home

Today, Codex sessions in T3 Code are not fenced off the gruntas home. Gruntas fences a Codex session with a permissions profile it passes to `codex app-server`. T3 Code sends its own sandbox policy with every Codex turn, read-only or full access by its access mode, and Codex takes that policy in place of gruntas's profile. Gruntas passes T3 Code's messages through unchanged, so the profile doesn't hold.

Claude Code sessions in T3 Code are fenced off: gruntas's sandbox settings are merged last, over the settings T3 Code passes on the command line, and its deny rules refuse a read of `~/.gruntas`. To keep a Codex session out of `~/.gruntas` today, run it in a terminal with `gruntas run codex`.

## Checked with

Checked live in T3 Code 0.1.12, with Claude Code sessions on two accounts: each registered in `gruntas status`, asked T3 Code to approve a file write, and was refused a read of the gruntas home, in T3 Code's Supervised mode. The Codex steps follow the same setup and have not yet been run live in T3 Code. T3 Code moves fast, and a later version may name its settings differently.

## **One instance per account, and T3 Code as it was.**

Rerun gruntas t3 whenever your accounts change, and keep T3 Code's instances in step with what it prints.

[The CLI reference](https://gruntas.com/docs/cli) [See the pricing](https://gruntas.com/pricing)