artifacts CLI is the recommended interface for local agents, CI jobs, and scripts. It’s a deterministic wrapper over the REST API with machine-readable discovery and predictable output.
This page covers setup and behavior. For the full command list, see the CLI reference.
Install
~/.local/bin/artifacts. It then shows an interactive picker so you choose which coding agents receive the agent-artifacts skill (via Vercel’s skills CLI). Agents already installed on your machine are preselected; toggle entries by number, or press Enter to accept. Supported choices include Cursor, Claude Code, Codex, OpenCode, Copilot, Gemini CLI, and Windsurf.
Skip the picker and target specific agents (use '*' for all):
Point it at your services
For local development:.env:
apps/cli/dist/release/v<version>/ to the matching GitHub Release tag. The public web app on Railway exposes https://hostartifacts.dev/install.sh as the memorable installer URL, redirecting to the latest release installer.
URLs resolve in this order:
Authenticate
secret-tool/libsecret on Linux, Keychain on macOS, and Credential Manager on Windows. The local ~/.config/agent-artifacts/credentials.json file contains only non-secret metadata such as service URLs.
On Linux, install secret-tool and unlock your keyring before running artifacts login.
Discovery for agents
Agents should rely on schema discovery rather than parsing--help:
Output contract
The CLI is built for automation:- JSON by default when stdout isn’t a TTY; text in interactive terminals.
- Data on stdout, errors on stderr.
- A stable envelope:
{ "ok": true, "data": ... }or{ "ok": false, "error": ... }. --ndjsonstreams list results as one JSON object per line.next_actionssuggest useful follow-up commands.
| Code | Meaning |
|---|---|
0 | Success |
2 | Invalid request |
3 | Not found |
4 | Forbidden or authentication failure |
5 | Conflict |
69 | Retryable network failure |
Commands you’ll reach for
CLI reference
Every command, flag, and environment variable.