Backends
One native loop across configured HTTP profiles.
One native backend
Every profile uses OpenAI-compatible HTTP. tny owns tools, MCP, skills, permissions, sessions, jobs, teams, and workflows. The C ABI and normalized event schema remain stable.
Codex
A builtin profile of the native loop: your ChatGPT login drives the Responses-compatible chatgpt.com/backend-api/codex with chatgpt-account-id and OpenAI-Beta: responses=v1. tny owns tools, permissions, MCP, and sessions; tokens auto-refresh; no codex app-server process.
tny --provider codex login signs in natively (browser PKCE, or --device for headless boxes) into ~/.tny/codex-auth.json; CHATGPT_ACCESS_TOKEN / --chatgpt-token need no file at all; an existing codex login keeps working.
OpenAI-compatible
The Responses API (POST /v1/responses) with typed SSE events is the default wire; legacy Chat Completions stays available per provider via wire_api: "chat". This is the only backend where tny owns the complete tool loop. The agent loop assembles preamble + AGENTS.md + skill catalog + history, posts, executes tool calls, and repeats until final text, a step limit, cancel, or deny. Sessions store the portable chat-shaped transcript on either wire.