Background task agent for your desktop. K-2SO is the brains — it plans, researches, and reports. Pair it with an MCP integration pack (like R2-D2) for local system tools.
OpenCode is a prerequisite, not bundled. Install and configure OpenCode yourself (provider, auth, ~/.config/opencode/opencode.json). K-2SO registers via sidecar files and never writes your OpenCode config.
- Accept instructions via CLI (
k2so ask "...") over a Unix domain socket API - Run tasks in the background through an OpenCode engine
- Stream progress to a local web dashboard — a persistent HTTP bridge at
http://127.0.0.1:7780(run viak2so dashboard, or thek2so-dashboard.servicecompanion unit under R2-D2);k2so openopens it in your browser - Queue work with configurable concurrency limits; prune old workspaces with
k2so prune - Remember context across tasks via local memory files (
SOUL.md,USER.md,MEMORY.md, skills)
- Node.js 20+
- OpenCode installed and configured with your LLM provider
- An MCP server for platform-specific tools (optional for testing)
# 1. Install OpenCode and configure your provider (see docs/OPENCODE.md)
curl -fsSL https://opencode.ai/install | bash
# 2. Install K-2SO
npm install -g @5kyguy/k2so
# 3. Register K-2SO (markdown agent + memory seeds — no opencode.json edits)
k2so init
# 4. Run
k2so serve
k2so ask "Summarize what is in my Downloads folder"Upgrading from the old install.sh model? Run k2so init --migrate-opencode to move the agent to ~/.config/opencode/agents/k2so.md and remove the legacy agent.k2so block from your config.
Full guide: docs/INSTALL.md. Health check: k2so doctor. Remove: k2so uninstall.
K-2SO is a companion that grows via local files in ~/.config/k2so/:
- Soul — persona (
SOUL.md) - User — model of you (
USER.md) - Memory — long-term facts (
MEMORY.md) - Skills — reusable procedures (
skills/*.md)
k2so memory show
k2so memory edit user
k2so open # open the dashboard (127.0.0.1:7780) in your browserDetails: docs/MEMORY.md.
npm install
npm run build
node dist/cli.js init # or: npm link && k2so init
k2so serveProfile path defaults to ~/.config/k2so/profile.toml. Override with K2SO_PROFILE.
See docs/OPENCODE.md and templates/ for profile and agent templates.
See CHANGELOG.md or the GitHub Releases page.
R2-D2 ships r2d2-mcp, Hyprland hotkeys, and voice ingress that call into K-2SO. K-2SO itself stays platform-agnostic.
MIT