Run AI coding assistants securely with sandboxing, local knowledge, and token optimization.
wssch provides a secure, local-first environment for running AI coding assistants in your workspace. It combines:
- Sandboxing β Run AI agents inside an isolated bwrap environment, protecting your system
- Local Knowledge β RAG-powered code awareness using local embeddings (no external API calls)
- Token Optimization β Compress context before sending to the AI, reducing costs and improving response quality
It's designed as a workspace aggregator β a single entry point that brings together the tools and strategies you need for productive AI-assisted development.
- Runtime: TypeScript / Node.js (>=20) + Bun
- Supported Sandboxes: bwrap (bubblewrap)
- Supported AI Assistants: OpenCode, ForgeCode
- Supported MCPs: Shinpr MCP LocalDB, Shinpr MCP LocalRAG, Lumen MCP
- Supported Token Algorithms: RTK (context compression)
Before using wssch, ensure you have:
- bwrap β Install via your package manager (e.g.,
apt install bwrap,brew install bwrap). Optional β use--no-sandboxororchestratecommand in Docker/WSL environments without bwrap. - Node.js β >=20
- OpenCode β AI coding assistant
- Ollama β For local embeddings (optional, RAG works without it)
# Clone and install
git clone <repo> ~/tools/wssch
cd ~/tools/wssch
make install
# Add to PATH (if not already)
export PATH="$HOME/.local/bin:$PATH"
# Run in a project directory
wssch /path/to/your/projectwssch run [dir] # Start sandbox and run orchestrator (default: cwd)
wssch run --no-sandbox # Bypass bwrap, run directly (Docker/WSL without bwrap)
wssch orchestrate # Run orchestrator without sandbox (alias: orcs)
wssch init [dir] # Scaffold config in a project directory
wssch database # Edit preferences interactively (alias: db)
wssch deps # Install dependenciesNote: wssch can be used without sandbox in non-bwrap environments (Docker, WSL, etc.) using --no-sandbox or the orchestrate command.
wssch stores data in ~/.config/wssch/:
~/.config/wssch/bin/β Local binaries (bun, rtk)~/.config/wssch/opencode/β OpenCode config/shared~/.config/wssch/whitelist.dbβ Directory whitelist database
Project-specific data is stored in .wssdata/ in your project directory:
.wssdata/mcp/β MCP server configuration
Yes, it was AI-built. But in 2026, what's wasn't? Still, this is built for the security-conscious β not out of tinfoil-hat paranoia, but because your codebase shouldn't be training data for the next model release. Local embeddings, isolated sandboxes, your tokens staying your tokens.
wssch aims to be extensible β a unified interface for plugging in different AI agents and strategies. Future plans include:
- Support for additional AI coding assistants
- Pluggable RAG backends and embedding providers
- Custom token compression and context strategies
- Workspace-level policies for fine-grained control
The goal: your workspace, your rules, any AI assistant.