Skip to content

Getting started

This guide takes you from a fresh install to a working AI development environment in your repository.

On macOS and Linux, run:

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

This installs the openlune binary to ~/.local/bin/openlune and verifies its SHA-256 checksum.

On Windows (PowerShell), run:

Terminal window
irm https://openlune.io/install.ps1 | iex

This installs openlune.exe to %LocalAppData%\Programs\OpenLune.

If you prefer installing manually—or pinning a specific version—you can download a prebuilt archive from GitHub Releases, or set OPENLUNE_VERSION=v0.1.0 before running either install script.

Check that openlune is on your PATH:

Terminal window
openlune version

OpenLune looks for openlune/manifest.yaml inside your project root. All paths inside the manifest (like instruction files or skill directories) resolve relative to that openlune/ folder.

Start small with a project instruction file and a read-only code reviewer agent. Create two Markdown files first:

openlune/instructions.md
# Project guidelines
- Keep functions small and focused.
- Write tests alongside behavior changes.
- Run `go test ./...` before finishing a task.
openlune/agents/reviewer.md
Review the current diff for correctness, edge cases, and readability.
Do not modify files; report concrete findings with file paths and line numbers.

Now create openlune/manifest.yaml:

version: "0.1"
instructions:
project:
source: instructions.md
agents:
reviewer:
description: Review changes for correctness and maintainability.
instructions: agents/reviewer.md
capabilities: [files.read, files.find, files.search]

That’s a complete, valid manifest.

Before writing a single file, preview what OpenLune will generate for your AI client:

Terminal window
openlune plan --client claude-code

Replace claude-code with copilot, codex, grok-build, or antigravity—whichever client you use. If you omit --client in an interactive terminal, OpenLune will ask you to pick one.

OpenLune remembers your client choice for this checkout (in .openlune/selection.json), so you don’t have to pass --client on every command. You can switch clients anytime by passing --client again.

Want to inspect the exact generated files before applying? Add --details:

Terminal window
openlune plan --details

plan is always safe to run: it downloads nothing, runs no commands, and writes no files.

When the preview looks good, apply it:

Terminal window
openlune apply

OpenLune prints the plan again and asks for confirmation ([y/N]). Once you confirm, it writes your client’s native files—for Claude Code, that’s CLAUDE.md and .claude/agents/reviewer.md.

If your selected client cannot express a declaration directly (for example, Grok Build and Codex do not restrict subagent tools, so reviewer inherits parent tools), OpenLune highlights the deviation and asks whether you want to accept it before applying. You only have to accept a given deviation once unless it changes.

Run verify anytime to confirm your local setup still matches the manifest:

Terminal window
openlune verify

verify runs offline and never modifies files. If someone updates openlune/manifest.yaml in Git, or if a local file drifts from what OpenLune generated, verify tells you exactly what is out of sync.

OpenLune stores local checkout records—client selection, file ownership, and managed MCP installations—inside .openlune/, which ignores itself.

By default, the generated client files (CLAUDE.md, .github/agents/, .mcp.json, and so on) also stay local to each developer’s machine. openlune apply lists them in the repository’s .git/info/exclude, so git status doesn’t report them and nobody maintains .gitignore entries. See To commit or not commit? for the details—or to learn how to commit generated files for contributors who don’t use OpenLune.

Once the basics feel comfortable, try adding a managed MCP server. OpenLune can install the server and its runtime for you—isolated from your global Node or Python setup:

mcp:
codegraph:
transport: stdio
command: codegraph
args: [serve, --mcp]
install:
tools:
- tool: node
version: "24.22.3"
- tool: npm:@colbymchenry/codegraph
version: "1.6.0"
initialize:
command: codegraph
args: [init, --yes]

Run openlune apply. OpenLune shows the tools it will install and the initializer command it will run. After you confirm, it provisions the isolated environment, runs codegraph init --yes once, and registers the server in your AI client’s MCP config.