published may 21, 2026

Generate an Agent-Native Cli From Any API or Website

beginner

The Rundown

In this guide, you will learn how to use Printing Press (https://printingpress.dev/) to download agent-friendly tools for hard to use APIs like Google Flights or ESPN. You will also learn to build your own CLI tools to access any site with an API. We use Codex but this works great with OpenClaw and Claude Code too.

Who This Is For

  • Developers and AI operators who want agents to use websites and APIs without long browser sessions.
  • Codex, OpenClaw, Hermes, or Claude Code users who want better local tools for repeated workflows.
  • Anyone who wants to turn a data-rich website or API into reusable read-only commands.

What You Will Build

You will install the Printing Press starter kit, have your agent test a working tool like ESPN, then install the Printing Press binary so your agent can generate its own CLI commands.

ESPN CLI returning live NBA scores
ESPN CLI returning live NBA scores

What You Need

  • Node and npx for the starter kit install.
  • Go for the Printing Press binary install.
  • An AI coding agent such as Codex, OpenClaw, Hermes, or Claude Code.
  • A simple website, API docs page, or OpenAPI spec to test after setup.

Going Further

If your agent struggles to use a specific MCP or integration, you can tell it to build its own commands with Printing Press. You just need a site with useful data, API documentation, or an API key.

The bigger idea is to stop making agents rediscover the same surface area every time. If your agent needs the same website or API every week, turn that system into a small local tool.