Skip to content
⌘K

Get started

How Okibi works

Sources, specs, okibi.yml, builds, the pipeline, and releases. The ideas behind every generated CLI.

Every CLI starts as a source, becomes an OpenAPI spec, is made by a build, and reaches users as a release. The pipeline runs that path again whenever something changes.

In the app, each CLI is a project. Its Overview draws that path: the source, the spec, and the two things every build makes, the CLI and an MCP server, each with its Skill and Docs. Dashed boxes are not added, built, or turned on yet.

A project's Overview map: source, spec, the CLI and MCP server with their Skill and Docs, and Identity

Two CLIs

There are two CLIs in these docs. Keep them apart:

CLIWho runs itWhat it does
okibiYou, the builderCreates your CLIs, runs builds, and manages releases
Your generated CLI, for example my-cliYour customers and their agentsCalls your product's API

Your Okibi API key is only for okibi. Your generated CLI signs in to your product the way your product expects. The flags in the Command reference belong to okibi, not to your generated CLI.

Sources and the spec

Every CLI builds from an OpenAPI spec. You give Okibi one source:

  • An OpenAPI document, from a link or a file. It builds straight away.
  • Public API docs, a GitHub repository, or, from okibi, a local codebase. An agent writes the OpenAPI spec first, then the CLI builds from it.
  • The example, Okibi's petstore API, to see it work.

The project's Spec page, and okibi spec source my-cli, show the spec the CLI builds from. See Create a CLI.

Builds

A build turns the spec into a CLI and checks it. It runs five steps:

StepWhat happens
SpecThe spec is read, or written by an agent first
CodegenThe CLI's code is written
LintThe code is checked
BuildThe CLI is built for macOS, Linux, and Windows
TestEvery command is checked

The first build, v1, takes about a minute from a spec. Then agent ready optimization improves login, command names, help text and examples, and workflow commands. Each change it finds is a suggestion. Nothing changes until you accept it. See Builds.

okibi.yml and the studio

okibi.yml lives at the root of the CLI's repository and defines the CLI: its command names, groups, help, and examples. When the spec changes, the next build adds new endpoints as commands and keeps everything in okibi.yml.

The studio is where you change it: a project chat whose agent edits okibi.yml, the file itself, the suggestions from agent ready optimization, and custom requests for changes okibi.yml can't make. See The studio.

The pipeline and Publish

Once a CLI is published, a change doesn't reach your users on its own. A build from Regenerate or the studio waits for you to click Publish. Builds that start themselves, when the repository's branch or the spec link changes, go through the CLI's release path: straight to the repository, or into a release pull request that you merge. See The pipeline.

Releases

A published build is a version of the CLI. You choose which version is the official release, who can install it, and where its code is hosted. Every release comes with:

  • A one-line installer for macOS, Linux, and Windows.
  • Generated command docs and a SKILL.md for agents.
  • A hosted MCP server.
  • Optionally, npm and Homebrew packages.

See Releases and install.

CLIs an older generator built

CLIs made before the pipeline were built by an agent that wrote a cli-spec.md plan. They keep working, and keep regenerating that way, until you migrate them onto the pipeline.

Workspaces

Everything above lives in a workspace. Each member is an owner, admin, builder, or tester, and the workspace's plan sets its limits. See Workspace and members and API keys.