Skip to main content

thwip

Universal Coding Agent Multiplexer

Detect all installed AI coding agents on your device, combine them in a unified terminal interface, and hot-swap models mid-conversation when hitting rate limits without losing context.


Features

  • Auto-Detection: Discovers installed AI coding agents (Claude Code, Antigravity, Gemini CLI, OpenAI/Codex, Aider, Copilot, Cursor, Windsurf, Cline, Ollama) and configured credentials.
  • Context Portability: Switch between Anthropic Claude, Google Gemini, OpenAI Codex, or local Ollama mid-project. Conversation history and working files transfer directly.
  • Dynamic UI: Terminal interface adapts its status bar, capabilities, and theme based on the active provider.
  • Capability Disclaimers: Highlights when an agent lacks specific capabilities such as file editing or code execution.
  • Rate Limit Failover: Detects HTTP 429 errors or quota exhaustion and prompts instant switching to ready fallback models.
  • Tool Layer: Shared file editing, code execution (Python, Node, Shell), and Git integration across connected models.
  • Session Persistence: Save and resume sessions across projects with /session save and /session load.
  • Terminal Ergonomics: Autocompletion (Tab), keyboard shortcuts (Ctrl+S, Ctrl+T, Ctrl+H), and streaming markdown rendering.

Quickstart

1. Installation

Install in editable mode or via pip:

git clone https://github.com/thwip-cli/thwip.git
cd thwip
pip install -e .

2. Launching thwip

Start the interactive terminal in your current project directory:

thwip

Slash Commands and Shortcuts

Command Action
/switch [agent] [model] Switch active agent or model mid-conversation
/agents Show all detected coding agents, company status, and capabilities
/models [agent] List available models for current or target agent
/status Display current session, project, and token stats
/limits View token usage, quota, and spend metrics
/detect Re-scan system for newly installed coding agents
/session save [name] Save current chat session
/session load <name> Load a previously saved session
/session list List all saved sessions
/session clear Clear current conversation memory
/history View conversation history with model attribution badges
/cost Show estimated session and cumulative cost
/project [path] View or change project working directory
Ctrl + S Quick switch agent prompt
Ctrl + T Show agent status
Ctrl + H View history
/quit Exit thwip

Supported Companies and Agents

Company Agent Capabilities
Anthropic Claude Code (Sonnet, Opus, Haiku) Chat, File Edit, Code Run, Terminal, Git, Search
Google Antigravity / Gemini CLI (2.5 Pro, 2.5 Flash) Chat, File Edit, Code Run, Terminal, Browser, Search
OpenAI Codex / ChatGPT (GPT-4.1, o3, o4-mini) Chat, File Edit, Code Run, Terminal
DeepSeek DeepSeek V3 / R1 Reasoner Chat, File Edit, Code Run, Reasoning
Groq Llama 3.3 70B, Mixtral Chat, File Edit, Code Run
Ollama Local Models (Llama 3.3, Qwen Coder, DeepSeek R1) Chat, File Edit, Code Run (Local, Offline)
OpenRouter Multi-Company Models Gateway Routing

Configuration (~/.thwip/config.toml)

thwip auto-detects existing API keys from environment variables and existing agent configs (~/.claude.json, ~/.gemini/config.json). Configuration can also be set manually:

[defaults]
agent = "claude"
model = "claude-sonnet-4"
project = "."
theme = "dark"
stream = true
auto_save = true

[keys]
anthropic = "sk-ant-..."
google = "AIza..."
openai = "sk-..."
deepseek = "sk-..."
groq = "gsk_..."
openrouter = "sk-or-..."

[ollama]
host = "http://localhost:11434"

[fallback]
enabled = true
chain = [
    "claude/claude-sonnet-4",
    "google/gemini-2.5-pro",
    "openai/gpt-4.1",
    "deepseek/deepseek-chat",
    "ollama/llama3.3"
]

License

MIT License

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

thwip_cli-1.0.0.tar.gz (105.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

thwip_cli-1.0.0-py3-none-any.whl (52.5 kB view details)

Uploaded Python 3

File details

Details for the file thwip_cli-1.0.0.tar.gz.

File metadata

  • Download URL: thwip_cli-1.0.0.tar.gz
  • Upload date:
  • Size: 105.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for thwip_cli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 94ff7f23935dcda5cd3aa4d1a2f7822331fd4c653e574d4a4221eefaa16a8094
MD5 97f09c2cc9037518792e27241b21e6eb
BLAKE2b-256 d18af0e5f8c1213100484dd97549c1b50bf973041fa3cf870a94fddbe21e1049

See more details on using hashes here.

File details

Details for the file thwip_cli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: thwip_cli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 52.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.12.0 {"installer":{"name":"uv","version":"0.12.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for thwip_cli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 fce9972c58ed0aac68907e26bf7259c3b9fdb54cb53495a75cee5c507775bef1
MD5 c50b8ef0711f9adae105a053eeeada8b
BLAKE2b-256 195275ad28a3182886f54f5a565c7c24a525973bba12b815a953cd18d067db05

See more details on using hashes here.

Release history Release notifications | RSS feed

1.0.3

2 files

1.0.2

2 files

1.0.1

2 files

This release

1.0.0 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page