An agent-first CLI to interact with your Hyperline account from the terminal
The Hyperline CLI lets you manage your billing operations directly from the terminal. It’s designed to be agent-first — optimized for AI agents like Claude Code, Cursor, Windsurf, and any tool that can run shell commands.
AI agents work with tools to accomplish tasks. Today, most agents use MCP (Model Context Protocol) to connect to external services. While MCP works well, it has limitations when used at scale:
Context bloat — MCP servers expose dozens of tools, each with full schemas that consume valuable context window space.
Slower on complex tasks — For multi-step workflows, agents using MCP need to discover tools, read schemas, and format structured requests for each operation. On complex questions, MCP agents can loop for minutes trying to find the right tool combination.
CLIs solve these problems:
Token-efficient — Short commands like hyperline customers list are natural for a text-predicting model to write and require minimal context to understand.
No tool discovery overhead — Agents don’t need to load a catalog of tools or read JSON schemas. They just run commands and read the output.
Composable — CLI output can be piped, filtered with jq, or chained with other commands — patterns that agents handle natively.
The CLI follows a consistent hyperline <resource> <action> pattern:
Copy
Ask AI
# List customershyperline customers list# Get a specific invoicehyperline invoices get --id inv_xxxxx# Create a new customerhyperline customers create --name "Acme Inc" --currency USD
By default, the CLI outputs human-readable text. Use --output json for structured output:
Copy
Ask AI
# Human-readable outputhyperline customers list# JSON output for scriptinghyperline customers list --output json# Pipe to other toolshyperline customers list --output json | jq '.[].name'
Add the Hyperline CLI to your project’s CLAUDE.md so Claude knows it’s available:
Copy
Ask AI
## ToolsHyperline CLI is available for billing operations.Authenticate with: `export HYPERLINE_API_KEY=sk_...`Usage: `hyperline <resource> <action> [options]`Use `--output json` when you need to process the data.
Add instructions to your project rules (.cursor/rules/ or .windsurfrules) so the agent knows to use the CLI:
Copy
Ask AI
## BillingUse the Hyperline CLI for any billing-related tasks.Run `hyperline <resource> <action>` commands in the terminal.Use `--output json | jq` for filtering and processing data.
Any AI agent that can execute shell commands can use the Hyperline CLI. Set the HYPERLINE_API_KEY environment variable in the agent’s environment, and the CLI is ready to use — no additional configuration or tool registration needed.