CLI & Agent Skills
Install the native agentslot CLI and official Agent Skill so developers and coding agents (Claude Code, Codex, Cursor, OpenCode) can inspect, connect, and manage AgentSlot programmatically.
AgentSlot ships a zero-dependency native CLI (agentslot) alongside an official Agent Skill and machine-readable discovery endpoints so both developers and coding agents can learn the platform, configure local tools safely, and operate cloud instances or local bridges end to end.
Install the CLI
macOS and Linux:
curl -fsSL https://agentslot.ai/install.sh | shWindows PowerShell:
irm https://agentslot.ai/install.ps1 | iexThe installer downloads the native binary for your architecture from https://app.agentslot.ai/downloads/agentslot/, verifies its SHA256SUMS digest, and symlinks agentslot into ~/.local/bin (or %LOCALAPPDATA%\AgentSlot\cli on Windows).
The CLI and official Agent Skills are open source under the MIT license at github.com/agentslot-ai/cli. You can also install directly from GitHub Releases or build from source with Go 1.24+:
# Install directly from GitHub Releases
curl -fsSL https://raw.githubusercontent.com/agentslot-ai/cli/main/install.sh | sh
# Or build from source with Go 1.24+
go install github.com/agentslot-ai/cli/cmd/agentslot@latestInstall the official Agent Skill
The agentslot binary embeds the official AgentSlot skill (SKILL.md plus progressive reference files for CLI, clients, gateway API, local bridges, and error remediation). Install it directly into your coding agents without needing git or npm:
# Install into the current repository (.agents/skills, .claude/skills, .cursor/skills, .opencode/skills)
agentslot skill install --target all --scope project
# Or install globally for your user profile
agentslot skill install --target all --scope userClaude Code users can also install directly from the public GitHub plugin marketplace:
claude plugin marketplace add agentslot-ai/cli
claude plugin install agentslot@agentslotAgents that support standard web discovery can also fetch:
- Open-source CLI & Skills repository: https://github.com/agentslot-ai/cli
- Agent Skills index:
https://agentslot.ai/.well-known/skills/index.json - Primary skill file:
https://agentslot.ai/.well-known/skills/agentslot/SKILL.md - LLM index & full docs:
https://agentslot.ai/llms.txtandhttps://agentslot.ai/llms-full.txt - Console OpenAPI contract:
https://agentslot.ai/openapi/console.yaml
Zero-login discovery & gateway diagnostics
Every agentslot command supports --json for structured output and deterministic exit codes (0 OK, 1 runtime, 2 usage, 3 auth, 4 not found, 5 conflict):
# Offline overview (endpoints, protocols, tiers: 5 free bridge slots, Basic $9, Pro $19)
agentslot info --json
# Machine-readable catalog of every command, flag, and exit code
agentslot schema
# Gateway error catalog and remediation steps
agentslot errors --json
# Check CLI, auth state, gateway health, available models, and installed local tools
agentslot doctor --jsonWith an Access Point token (asl_...) exported as AGENTSLOT_API_KEY:
export AGENTSLOT_API_KEY="asl_your_access_point_token"
agentslot models --json
agentslot ping --model claude-sonnet-4-5 --json
# Preview a safe config merge before writing (~/.claude/settings.json, ~/.codex/config.toml, ./opencode.json, ./.env)
agentslot setup claude-code --dry-run --json
agentslot setup claude-code --writeSign in to the control plane
Control-plane management commands use a revocable Personal API Token (aslp_...) scoped to your workspace.
Browser device-code login (recommended)
agentslot auth loginThe CLI displays an 8-character verification code and opens https://app.agentslot.ai/cli-auth. Once you approve in the browser, the CLI stores the minted aslp_... token in ~/.config/agentslot/credentials.json (0600).
For SSH sessions, containers, or autonomous coding agents:
agentslot auth login --no-browser --start-only --json
# Present verification_url_complete & user_code to the user, then finish polling:
agentslot auth login --poll <device_code> --wait --jsonHeadless CI / Personal API Token
Create an aslp_... token in Console → Settings → CLI & API Tokens (https://app.agentslot.ai/settings), then either export AGENTSLOT_TOKEN or store it via stdin:
printf '%s' "$AGENTSLOT_TOKEN" | agentslot auth login --token-stdin
agentslot auth status --jsonToken prefixes at a glance
| Prefix | Env var | Target | Purpose |
|---|---|---|---|
asl_... | AGENTSLOT_API_KEY | https://api.agentslot.dev | Gateway Access Point token for inference requests |
aslp_... | AGENTSLOT_TOKEN | https://app.agentslot.ai/api/v1/* | Control Plane Personal API Token for CLI & automation |
aslb_... | AGENTSLOT_BRIDGE_TOKEN | agentslot-bridge | Local Bridge encrypted tunnel token |
Common management workflows
# Inspect workspace quotas, regions, and instances
agentslot overview --json
agentslot regions list --json
agentslot instances list --json
# Create a free local bridge instance (5 free slots + 2/Basic + 5/Pro)
agentslot instances create --tier bridge --alias local-ollama --json
# Create a cloud slot, wait for provisioning, and store an official API key safely via env var or stdin
agentslot instances create --tier pro --region us-nyc --alias anthropic-main --json
agentslot instances wait ins_... --json
agentslot instances set-key ins_... --provider anthropic --api-key-env ANTHROPIC_API_KEY --json
# Configure route groups and access points
agentslot route-groups create --name prod --strategy priority --member ins_primary --member ins_backup --json
agentslot access-points create --name ci-claude --route-group rtg_... --json