Chat with AI coding assistants from any chat client. Each session is a separate contact. No vendor lock-in. Use whatever chat server you want.
src/middleware/auth.js
Traditional AI chat systems hide sessions behind a single bot. Switch makes every session a first-class contact in your chat app.
Three sessions means three chat windows, not one window with context-switching commands. Your chat app's UI manages your agent swarm natively.
Open a session on your phone, continue on desktop. Each contact syncs independently through your XMPP client. History follows you everywhere.
Use any chat client you want. Conversations, Monal, Gajim, Dino — or our custom macOS client. It's your choice.
Claude Code, OpenCode with GPT, GLM, or Kimi. Different models for different tasks, all accessible from the same interface.
Tool calls, run stats, attachments — all rendered beautifully. See token counts, costs, and duration at a glance.
Runs on your own Linux machine. Your code stays local. Your data stays yours. Full system access for real development work.
Switch bridges your chat client to AI coding assistants. Here's the flow.
Send a message to cc@, oc@, or oc-gpt@ to start a new session. Each orchestrator maps to a different AI backend.
Switch creates a dedicated contact for your session. This is your 1:1 chat with that task.
Send code, ask questions, run shell commands with ! prefix. The AI sees your project files and can make edits directly.
When a session is busy, spawn a sibling with +message. Run multiple tasks in parallel without waiting.
Switch works with any chat client. Here are some recommendations.
Custom macOS Client
A native macOS client built with SwiftUI. Features a two-column directory layout, rich message rendering with tool badges, typing indicators, and full support for Switch's custom metadata extensions.
Android
A modern XMPP client for Android with a clean interface, end-to-end encryption support, and excellent battery efficiency. Perfect for Switch on the go.
iOS & macOS
A free, open-source XMPP client for Apple devices. Simple, reliable, and privacy-focused with no ads or tracking.
Desktop
A full-featured XMPP client for desktop. Plugin system, group chat support, and extensive customization options.
Install Switch on your own hardware and start chatting with AI.
# Clone the repository git clone https://github.com/chknlittle/switch.git cd switch # Install dependencies uv sync # Set up agent instructions ln -sf ~/switch/AGENTS.md ~/CLAUDE.md ln -sf ~/switch/AGENTS.md ~/AGENTS.md # Configure and run cp .env.example .env # Edit .env with your XMPP server details uv run python -m src.bridge
Join developers who are already using Switch to manage their AI workflows. Self-hosted, open source, and designed for real work.