Skip to content

Installation

OpenSpec requires Bun as its runtime. Install from bun.sh if you haven’t already.

Terminal window
bunx @clanker-guru/openspec

This downloads and runs the latest version without global installation.

Terminal window
bun install -g @clanker-guru/openspec

Verify:

Terminal window
openspec --version
Terminal window
cd your-project
openspec init

During initialization, you’ll be prompted to select your AI coding tools. OpenSpec supports:

These tools get custom /openspec commands:

ToolCommands
Claude Code/openspec:proposal, /openspec:apply, /openspec:archive
Cursor/openspec-proposal, /openspec-apply, /openspec-archive
Codex/openspec-proposal, /openspec-apply, /openspec-archive
GitHub Copilot/openspec-proposal, /openspec-apply, /openspec-archive
OpenCode/openspec-proposal, /openspec-apply, /openspec-archive
Windsurf/openspec-proposal, /openspec-apply, /openspec-archive
+15 moreSee Integrations

These tools read instructions from openspec/AGENTS.md automatically:

  • Jules
  • Amp
  • Any AGENTS.md compatible tool

For CI/CD or scripts:

Terminal window
# Select specific tools
openspec init --tools claude,cursor
# Select all available tools
openspec init --tools all
# Skip tool configuration
openspec init --tools none
Terminal window
bun install -g @clanker-guru/openspec@latest

Then refresh your project’s AI instructions:

Terminal window
openspec update

Restart your AI coding assistant. Slash commands are loaded at startup.

Ensure you have write access to the project directory.

Install Bun from bun.sh:

Terminal window
curl -fsSL https://bun.sh/install | bash