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.1.tar.gz (107.8 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.1-py3-none-any.whl (54.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thwip_cli-1.0.1.tar.gz
  • Upload date:
  • Size: 107.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for thwip_cli-1.0.1.tar.gz
Algorithm Hash digest
SHA256 29fc2b13b86878c08d248beef43a3f8810740f388761de8f8d9a8769a59efd80
MD5 a697799420f318094cc49de8dce01b32
BLAKE2b-256 7c87cffb1cf822fc6fbf5ae38d7c9e6e45429809841379442b200689bfcc46fe

See more details on using hashes here.

Provenance

The following attestation bundles were made for thwip_cli-1.0.1.tar.gz:

Publisher: publish.yml on tanmayhutt/thwip-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

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

File metadata

  • Download URL: thwip_cli-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 54.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for thwip_cli-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 37657a7edd377c00288ce3d32b6ee5bbf156334792e74c9f7758615c271e9006
MD5 83965f8542d204322f3349a34d1277e6
BLAKE2b-256 efabc22f1ad66773e27e46a99d1e2714033dfd9f6b01df6b9a9ad618bd5d3013

See more details on using hashes here.

Provenance

The following attestation bundles were made for thwip_cli-1.0.1-py3-none-any.whl:

Publisher: publish.yml on tanmayhutt/thwip-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

1.0.3

2 files

1.0.2

2 files

This release

1.0.1 This release

2 files

1.0.0

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