Get Started
CLI & Coding Agents
Use the Pickaxe CLI with Claude Code, Codex, Cursor, and other coding agents.
If you are working with Claude Code, Codex, Cursor, or another coding agent, you can simply tell it to use the Pickaxe CLI to manage your workspace instead of calling these endpoints by hand.
Install
pnpm add -g @pickaxe/pickaxe-cli
You can also install it with npm:
npm install -g @pickaxe/pickaxe-cli
Authenticate
pickaxe auth login --api-key YOUR_WORKSPACE_API_KEY
pickaxe whoami
Good Agent Workflows
pickaxe init,pickaxe pull,pickaxe diff, andpickaxe pushfor syncing a Pickaxe project locally.pickaxe docs add|list|removefor knowledge base documents.pickaxe users ...,pickaxe memory ..., andpickaxe access-groups ...for workspace operations.pickaxe deploy createfor deployment creation.pickaxe deploy updatefor pushing newheaderScriptandfooterScriptinjection code to an existing embed or direct-link deployment.pickaxe deploy snippetfor rendering the final local embed HTML, including injected header and footer files.pickaxe page create,pickaxe page update, andpickaxe page linkfor custom coded pages and page-to-portal navigation.pickaxe portal create,pickaxe portal update, andpickaxe portal styling listfor portal setup and styling token discovery.pickaxe doctorfor checking auth and project setup.
Personal Agent Configuration
Set pickaxe.agenticRuntime to basic (Chatbot) or agentic (Personal Agent). pickaxe.type still controls the chat or form interface. Existing projects without agenticRuntime preserve the remote selection.
pickaxe:
id: my-agent
agenticRuntime: agentic
runtimeDir: runtime
roleFile: runtime/AGENTS.md
Use pickaxe pull --id my-agent to download an existing template, then edit its local files. AGENTS.md holds instructions, opencode.json holds supported Personal Agent settings, and .opencode/skills/ holds skill folders with SKILL.md files. Use root agentic-runtime.environment.json for exact public npm package versions, with a matching resolved agentic-runtime.npm-lock.json. Generate the lock in a separate directory as described in the Personal Agent API, and regenerate it when dependencies change. The CLI rejects missing or mismatched locks before uploading.
pickaxe diff
pickaxe push --dry-run
pickaxe push
pickaxe runtime get
pickaxe runtime versions
pickaxe runtime download --out runtime.zip
pickaxe runtime restore --version ocwv-YOUR_VERSION_ID
pickaxe runtime settings --shared-files false
push validates and publishes changed Personal Agent files and their supplied package locks as a version; an unchanged push does not publish another version. These files remain separate from knowledge-base documents. Pull protects local edits; use --force only to accept the remote version. If another editor publishes or edits the Personal Agent prompt through the Agent API, pull and reconcile before pushing again. Public prompt edits update versioned AGENTS.md atomically; Chatbot prompts remain independent of saved Personal Agent files.
For a new agent, prepare the directory and use pickaxe create "my agent" --yes --runtime agentic --runtime-dir runtime. Shared-file settings are changed explicitly with runtime settings and are preserved by ordinary pushes and version restores. See the Personal Agent API for limits, permissions, and direct HTTP workflows.
Embed Injection Example
deployments:
- key: website
type: embed-script-inline
headerScriptFile: embeds/header.html
footerScriptFile: embeds/footer.html
pickaxe deploy create --key website
pickaxe deploy update --key website --header-script-file embeds/header.html
pickaxe deploy snippet --key website
