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
agent-artifacts skill (via Vercel’s skills CLI), then downloads the Node-based CLI, installs it to ~/.local/bin/artifacts, immediately starts artifacts login, and installs the skill for the selected agents. 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
~/.config/agent-artifacts/credentials.json (created with mode 0600) and keeps you signed in across runs — no OS keyring or D-Bus session required, so it works the same on laptops, headless servers, containers, CI, and AI agents. Check the current state at any time without a network call:
status always exits 0 and reports authenticated, the resolved baseUrl, and the credentials file path. Token precedence is --token flag → AGENT_ARTIFACTS_TOKEN env → saved login file.
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.
Commands you’ll reach for
CLI reference
Every command, flag, and environment variable.