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.4.tar.gz (111.6 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.4-py3-none-any.whl (58.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: thwip_cli-1.0.4.tar.gz
  • Upload date:
  • Size: 111.6 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.4.tar.gz
Algorithm Hash digest
SHA256 5b3b90b560eeda85c867224408dfeffcf586d675eed5a0a7b57182cbba3306d3
MD5 9b029cdece43bdfccec8e0bdd877fd2c
BLAKE2b-256 46af0f659c762c5993fc0ca9cf3dc4ea9095afa5474e4393a53d6865359ab90f

See more details on using hashes here.

Provenance

The following attestation bundles were made for thwip_cli-1.0.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: thwip_cli-1.0.4-py3-none-any.whl
  • Upload date:
  • Size: 58.4 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c4c9772717feb71305be1cc23d28adbb251aacdf8bc37fbb186a55fd8f02121f
MD5 e8fa0cd98d4c517e149b9dc8702c3fd5
BLAKE2b-256 ff6c2f594ef6fabae666057f76fc29e9fbf44618dcd57ebbc6fec9b081a75ea5

See more details on using hashes here.

Provenance

The following attestation bundles were made for thwip_cli-1.0.4-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

This release

1.0.4 This release

2 files

1.0.3

2 files

1.0.2

2 files

1.0.1

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