- Category
- Utilities
- Publisher
- burakdede
- Repository
- Open repository
- Release
- Open release
- Current version
- v0.2.1
- Release date
- 2026-09-11
- Package size
- macOS 9.1 MB · Windows 4.5 MB
aisw-desktop
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.
README
AI Switch Desktop
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.
What it does
- 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
Tech stack
- 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.
Architecture
- 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.
Development
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 install
Stage a local aisw binary for desktop development:
npm run prepare:sidecar -- /absolute/path/to/aisw
You can build the sidecar from the aisw repo or point at an existing local binary.
Run the desktop app:
npm run tauri:dev
Verification
Frontend:
npm test
npm run test:coverage
npm run build
npm run test:e2e
npm run verify:release
Rust:
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.toml
Bridge 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 -- --ignored
Packaging
Unsigned local smoke bundle:
npm run tauri:bundle-local
Signed release bundle:
npm run tauri:build
Before 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.
Repository notes
- 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
Contributing
See CONTRIBUTING.md, CODE_OF_CONDUCT.md, and SECURITY.md.
License
More details from the publisher
Release notes
AI Switcher v0.2.1