AI Backends

Broski connects to AI coding agents running on your computer. Choose the backend that fits your workflow.

What is an AI Backend?

An AI backend is the coding agent that runs on your system. It handles communication with AI models (Claude, GPT, etc.), executes tools like file edits and shell commands, and manages your coding sessions.

Broski doesn't run AI models directly — it connects to these backends via the bridge server, giving you mobile access to powerful desktop coding agents.

How Backends Work with Broski

Broski App
Phone
WebSocket
Bridge
Server
API
Backend
Agent
AI Model
Claude, GPT...

The bridge server starts with your chosen backend and relays messages between the Broski app and the agent.

Choose a Backend

Which Backend Should I Use?

Use Claude Code if you...
  • Want Anthropic's official CLI agent experience
  • Need extended thinking, plugins, and subagents
  • Use Claude models exclusively
Use OpenCode if you...
  • Want flexibility to switch between providers (Anthropic, OpenAI, Google, 75+ more)
  • Prefer open-source with full customization
  • Need extensive MCP server integration
Use Codex if you...
  • Want OpenAI's official CLI agent experience
  • Need built-in sandboxing for command execution
  • Use OpenAI models exclusively

Feature Comparison

FeatureClaude CodeOpenCodeCodex
ProviderAnthropic75+ providersOpenAI
Own ToolingYesYesYes
MCP SupportYesFullYes
SubagentsYesYesYes
Sandbox ModeNoNoYes (built-in)
Open SourceNoYesYes

Session Compatibility

Sessions are backend-specific. When you switch backends, your sessions from the previous backend are hidden (not deleted). Switch back anytime to see them again.
ScenarioWhat Happens
Switch OpenCode → Claude CodeOpenCode sessions hidden, Claude Code sessions shown
Switch Claude Code → OpenCodeClaude Code sessions hidden, OpenCode sessions shown
Sessions deleted?No — both session sets are preserved
Transfer sessions?No — sessions cannot migrate between backends

Switching Backends

From the App

Go to SettingsAI Backend and select your preferred backend. The app will reconnect automatically.

From the Command Line
bash
# Default (OpenCode)
broski

# The backend is selected in the app settings
# Switch backends from Settings → AI Backend in the app
Make sure the backend CLI is installed on your system before selecting it in the app. See individual backend pages for installation instructions.