McpSessionRegistry minted a per-thread MCP bearer credential once at provider-session start with a hard 8h maximum lifetime and no refresh path. The token is handed to the agent process as a static header, so once the absolute cap passed, the still-healthy session's MCP calls started failing 401 with no way to recover short of a manual re-authorization (observed 2026-07-03: "t3-code requires re-authorization (token expired)" mid-session). Have `resolve()` transparently slide a credential's expiry forward on every authenticated use, so actively-used sessions never approach the cap, and bump the default cap itself to 30 days (matching SessionStore's browser-session TTL) since the credential is already tightly scoped and explicitly revoked on session stop/error/shutdown. The existing 30-minute idle timeout still reclaims credentials for threads that go truly quiet. Co-Authored-By: Claude Fable 5 <[email protected]>
T3 Code
T3 Code is a minimal web GUI for coding agents (currently Codex, Claude, Cursor, and OpenCode, more coming soon).
Installation
Warning
T3 Code currently supports Codex, Claude, Cursor, and OpenCode. Install and authenticate at least one provider before use:
- Codex: install Codex CLI and run
codex login- Claude: install Claude Code and run
claude auth login- Cursor: install Cursor CLI and run
cursor-agent login- OpenCode: install OpenCode and run
opencode auth login
Run without installing
npx t3@latest
Tip: Use npx t3@latest --help for the full CLI reference.
Desktop app
Install the latest version of the desktop app from GitHub Releases, or from your favorite package registry:
Windows (winget)
winget install T3Tools.T3Code
macOS (Homebrew)
brew install --cask t3-code
Arch Linux (AUR)
yay -S t3code-bin
Some notes
We are very very early in this project. Expect bugs.
We are not accepting contributions yet.
There's no public docs site yet, checkout the miscellaneous markdown files in docs.
Documentation
If you REALLY want to contribute still.... read this first
Install vp
T3 Code uses Vite+ so you'll need to install the global vp command-line tool.
macOS / Linux
curl -fsSL https://vite.plus | bash
Windows
irm https://vite.plus/ps1 | iex
Checkout their getting started guide for more information: https://viteplus.dev/guide/
Install dependencies
vp i
Read CONTRIBUTING.md before opening an issue or PR.
Need support? Join the Discord.