AI Switch Desktop is a local-first desktop app for switching between coding-agent identities through the aisw runtime. It uses Tauri 2 for the native shell, Rust for the desktop bridge, and React + TypeScript for the UI.
Alpha: AI Switch Desktop is still in active alpha. Rough edges and runtime integration issues are expected while the desktop app and theaiswruntime continue to evolve together.
- manages saved profiles for Claude Code, Codex CLI, Gemini CLI, and Antigravity CLI
- switches one tool or a saved multi-tool set from a native desktop UI
- runs diagnostics, verification, repair, and backup flows through the runtime
- supports bundled, system, and custom
aiswruntime sources - keeps credentials and provider-specific auth handling inside the runtime layer
- React 18 + TypeScript + Vite
- TanStack Query, Zustand, Zod
- Tauri 2
- Rust
Architecture details live in docs/architecture.md. Release and packaging steps live in docs/release-runbook.md.
- React feature panels talk to typed client helpers only.
- The Tauri command layer is the only frontend-to-native entry point.
- Rust owns runtime selection, command execution, updater validation, tray behavior, and error normalization.
- The bundled or selected
aiswruntime remains the source of truth for switching state, backups, verification, repair, and provider auth handling.
Prerequisites:
- Node.js
>=20.19.0 - npm
>=10 - Rust toolchain with Cargo
- Playwright browser binaries via
npx playwright install --with-deps chromium
Install dependencies:
npm installStage a local aisw binary for desktop development:
npm run prepare:sidecar -- /absolute/path/to/aiswYou can build the sidecar from the aisw repo or point at an existing local binary.
Run the desktop app:
npm run tauri:devFrontend:
npm test
npm run test:coverage
npm run build
npm run test:e2e
npm run verify:releaseRust:
cargo fmt --manifest-path src-tauri/Cargo.toml --check
cargo clippy --manifest-path src-tauri/Cargo.toml --all-targets -- -D warnings
cargo test --manifest-path src-tauri/Cargo.toml
cargo check --manifest-path src-tauri/Cargo.tomlBridge contract against a real aisw binary (runs in a throwaway HOME, never touching your own accounts):
AISW_CONTRACT_BINARY=/absolute/path/to/aisw cargo test --manifest-path src-tauri/Cargo.toml real_aisw -- --ignoredUnsigned local smoke bundle:
npm run tauri:bundle-localSigned release bundle:
npm run tauri:buildBefore either build, stage the correct aisw sidecar with npm run prepare:sidecar. The repository does not track staged sidecar binaries. CI and release builds download the version pinned by AISW_VERSION in .github/workflows/ and verify its published SHA-256 checksum; see docs/release-runbook.md for adopting a new aisw release.
- local-only planning documents and scratch artifacts are intentionally ignored
- the desktop app is a control plane for the
aiswruntime, not a replacement for its credential and switching logic - the release verifier checks CI, workflow, capability, and packaging contracts before a public release
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.


