CLI

OpenAPI-native command-line tool for the Apideck Unified API. Beautiful TUI for humans. Token-efficient progressive disclosure for AI agents.

Install

Install the CLI using your preferred method.

Terminal
# Homebrew
brew install apideck-libraries/tap/apideck

# Go
go install github.com/apideck-libraries/cli/cmd/apideck@latest

# Docker
docker run apideck/cli --help

Quick start

Configure your credentials and start making API calls.

Terminal
# Configure
export APIDECK_API_KEY=your-api-key
export APIDECK_APP_ID=your-app-id
export APIDECK_CONSUMER_ID=your-consumer-id

# Start using
apideck accounting invoices list
apideck crm contacts create --name "Jane Doe"
apideck explore

Features

Built for both human developers and AI agents.

OpenAPI-native

Parses the unified Apideck OpenAPI spec directly. No generated code, no SDK dependency.

Beautiful TUI explorer

Interactive API playground in the terminal. Browse APIs, resources, and operations.

AI agent-ready

agent-prompt outputs a token-optimized prompt (~80 tokens vs ~3,600 for MCP).

Permission engine

Auto-classified operations (read/write/dangerous) with built-in safety rails.

Why CLI?

Compare the CLI to other approaches for AI agent integration.

Dimensioncurl + OpenAPIMCPApideck CLI
Context cost~5,000–50,000 tokens~3,600 tokens/API~80 tokens
Auth handlingManual, per-requestPer-server, inconsistentAutomatic
Safety/PermissionsNoneOptional, per-serverBuilt-in
DiscoveryLoad entire specSchema dump upfrontLazy, progressive
Runtime depsNoneServer processNone (static binary)
Agent compatibilityAny (shell)MCP clients onlyAny (shell)

AI Agent Integration

Run apideck agent-prompt to generate a token-optimized prompt (~80 tokens) that teaches any AI agent the CLI. Use apideck skill install to write a Claude Code skill so your agent automatically knows Apideck.

Learn more about building with LLMs →