Skip to main content

Init

Install osapi's agent skills into a repository.

The command writes the skills in this binary for each --tool. It also writes a short section, with links to the skills, in the instructions file of that tool: CLAUDE.md or AGENTS.md. It does not change text outside the osapi section.

Run it again after you upgrade osapi. It writes the skills again to agree with the binary. It removes the files that an older version installed. Thus the agent does not read a skill about operations that the binary does not have now.

osapi init [flags]

Examples​

osapi init
osapi init --tool claude --tool codex
osapi init --path ./ops-repo --json

Flags​

FlagDescriptionDefault
--pathThe repository to install into; the current directory without it.
--toolAgent tool to install for: claude, codex (repeatable); claude without it (claude, codex)

Global flags​

FlagDescriptionDefault
-d, --debugEnable or disable debug mode
-j, --jsonEnable JSON output
-f, --osapi-filePath to config file/etc/osapi/osapi.yaml

Output tells how the result is printed, and what --json gives.