← Back to SwitchIt!

Your first switch starts here.

Run a complete migration comparison on synthetic workflows. Everything stays local, and you don’t need a provider account.

Install SwitchIt!

Install the Python harness first (Python 3.10+). The optional npm package provides CLI and MCP launchers and requires Node 20+ plus the Python harness. A virtual environment keeps the Python install separate from your other projects.

# Python harness — install or upgrade from PyPI
pip install --upgrade "switchit-harness>=0.2.0"

# Optional Node CLI bridge — requires the Python harness
npm install --global switchit-harness@latest

# Agent skill — one command, any compatible agent
npx switchit-skill@latest

Version 0.2.0 replaces the standalone npm engine with a Python bridge. If you used npm 0.1.x, install the Python engine before upgrading. Set SWITCHIT_PYTHON to your virtual environment’s Python executable when needed. The skill installer requires Node 18+.

Building from source? Run pip install . from the repository root. For the optional Node bridge, run npm install && npm run build inside harness-js/.

Run the offline demo

switchit run --demo --state-dir .switchit-demo

Open .switchit-demo/run/report.html in your browser. The bundled traces and mock target let you explore the workflow without sending data to a provider. The report includes passes, failures, errors, and uncertainties.

Bring your own workflows

Import authorized local coding-agent sessions, then review the workflow map and define success checks before replaying.

switchit import --agents --state-dir .switchit
switchit profile --state-dir .switchit
switchit map --state-dir .switchit
switchit cases --state-dir .switchit
# Review workflows.json and cases.json in .switchit first.
switchit replay --state-dir .switchit
switchit report --state-dir .switchit

Local imports support Codex, Claude Code, OpenCode, Cursor, Cline, Gemini CLI, and Copilot CLI. Exported JSON/JSONL, OTLP, Langfuse, and Parquet are supported too; Parquet needs the optional dependency.

Choose a live target when you’re ready

Live replay requires explicit opt-in with --remote. It sends the redacted cases to your chosen provider and can incur usage charges. Supply credentials through environment variables. OpenAI-compatible APIs, Anthropic Messages, and Bedrock Converse are supported, along with local Ollama and vLLM targets.

The baseline comes from recorded history. Provider replay compares tool calls against historical fixtures and does not execute your live business tools. A passing check only establishes the behavior that check measures. Separately configured command runtimes require explicit execution authorization.

Let your agent drive

Register the built-in MCP server in your agent’s configuration. Version 0.2.0 exposes the original import, profile, map, cases, replay and report tools alongside workflow, source and harness operations. Inspect the server’s advertised tools for the installed version.

{
  "mcpServers": {
    "switchit": {
      "command": "switchit-mcp",
      "args": []
    }
  }
}

The companion $switchit skill guides the review of workflows, success checks, and migration findings.