ls blog/

Posts from the OnlyCLI team — OpenAPI, native CLIs, and shipping binaries without the bloat.

MCP Token Trap: Why Your AI Agent Burns 35x More Tokens Than a CLI

Every time an LLM agent connects to an MCP server, the full tool catalog is injected into the context window. For a 93-tool GitHub MCP server, that is 55,000 tokens—before the agent does anything. ...

Why Native CLI Beats MCP for LLM Agent Tool Use

Large language models are increasingly wired to tools: functions the runtime can call to fetch data or perform actions. Two popular patterns are Model Context Protocol (MCP) servers and plain comma...

OnlyCLI vs curl vs HTTPie: When to Use What

Developers have no shortage of ways to hit HTTP APIs. curl ships everywhere. HTTPie optimizes for readability. OnlyCLI generates API-specific CLIs from OpenAPI. This post maps the trade-offs and sh...

Getting Started with OnlyCLI: Generate a CLI in 5 Minutes

OnlyCLI turns an OpenAPI 3.x document into a native Go CLI: real subcommands, flags for every parameter, JSON-first output, and optional extras like table mode and GJSON transforms. This tutorial w...

How to Generate a GitHub Personal Access Token for API Access

Command-line tools and automation scripts that call the GitHub REST API need credentials. For machines and local development, a personal access token (PAT) is the usual choice. This post explains w...

Mastering OnlyCLI Output: Table, YAML, GJSON, and Go Templates

Every OnlyCLI-generated binary prints structured responses so scripts and agents can rely on predictable stdout. By default you get compact JSON, but the runtime also supports pretty JSON, YAML, JS...