Skip to content
⌘K

Help

Troubleshooting

Fix common problems with login, repositories, builds, installs, and generated CLIs.

Find the symptom or message you see. okibi prints errors from the Okibi API as api <status>: <message>.

okibi: command not found

On macOS and Linux, the installer links okibi into ~/.local/bin. When that folder is not on your PATH, the installer prints a NOTE with the line to add to your shell profile:

Terminal
export PATH="$HOME/.local/bin:$PATH"

Open a new terminal and run okibi --version. If you set OKIBI_BIN_DIR when you installed, use that folder instead.

On Windows, the installer adds okibi to your user PATH. Restart your shell to pick it up.

A generated CLI installs into the same place, under its own name, such as my-cli.

Not logged in or wrong workspace

See who you are logged in as, your default workspace, and the workspaces you belong to:

Terminal
okibi auth status
okibi workspaces
You seeWhat to do
An error that starts with not logged inRun okibi auth login.
api 401: unknown or revoked api keyThe key was revoked. Log in again, or replace OKIBI_API_KEY.
workspace not foundCheck the slug in okibi workspaces. Testers see this too, because their role can't build CLIs.
this API key is locked to its workspace and cannot target anotherThe key is locked to one workspace. Use a key made for the workspace you want.

OKIBI_API_KEY wins over your saved login. If an old key is set in your shell or CI job, okibi uses that one.

To use another workspace, add --workspace acme to the command or set OKIBI_WORKSPACE=acme. To make it this machine's default, run okibi workspaces switch acme.

Login on a remote machine

Browser login needs a browser on the same machine. Over SSH, and on Linux without a display, okibi auth login switches to a device code on its own. To force it:

Terminal
okibi auth login --device-code

okibi prints a code and a URL. Open the URL on any device, confirm the code, and the terminal continues. If you see login code expired or login timed out, run the command again.

For CI, skip the browser and use an API key. See Keys for CI.

Repository missing

The Repos list shows the repositories the Okibi GitHub App can read. Auto-generate on a linked repository needs it too. Building from a private repository uses the GitHub account linked to your Okibi login, so that account needs access.

  1. Click Repos in the sidebar, then click Sync.
  2. Still missing? Open Settings, then Account. In the GitHub card, click Manage on GitHub next to the account and give the app access to the repository. No account listed? Click Connect GitHub.
  3. Go back to Repos and click Sync again.

If GitHub can't be reached, okibi repos shows your saved list and warns GitHub could not be reached; showing saved repositories. Run okibi repos to retry sync. If a command fails with github-connection-required, run okibi auth github to reconnect.

okibi is out of date

If you see this okibi client is out of date: new CLIs are built on the Okibi pipeline now, or an error that starts with this CLI is built on the Okibi pipeline, your okibi predates the pipeline. Run okibi update, or reinstall from https://okibi.ai/install, then try again. To rebuild that CLI, run okibi regenerate <name>.

A build waits for Publish

A build that shows Ready to publish is built and checked, but nothing ships until you publish it. Regenerate, studio changes, and migrations wait like this. Click Publish, or run okibi runs publish <run-id>. A held build expires after at most 24 hours, and a newer build replaces it. See Publish a build.

Improvements didn't run

The build's Agent ready optimization panel says why. When the workspace is out of generations, the build still ships, but its improvements don't run. Check okibi billing status, and see Plans and billing.

Build failed

okibi generate and okibi regenerate say which check failed and list the ways on. To look again later:

Terminal
okibi status <run-id>
okibi runs logs <run-id>
okibi status <run-id> --json

runs logs prints the build's whole log, as View logs does in the app. okibi status <run-id> --json lists each way on, with its command, in failure.actions. In the app, open the project's Builds: a failed build shows its reason, and its menu has View logs.

If a build fails, the previous release stays available. To try again, click Regenerate on the CLI's page, or run okibi regenerate my-cli. A CLI whose first build never shipped can start over from another source with okibi generate --rebuild --name my-cli <source>.

Name is taken

okibi generate refuses a name that already exists in the workspace. Rebuild that CLI from its own source with okibi regenerate my-cli. If its first build never shipped, give it a new source with okibi generate --rebuild --name my-cli --spec ./openapi.yaml.

Can't download or install

okibi pull only works for a build that succeeded. For any other build you get an error such as api 409: run is failed, artifact not ready.

When your users can't install the CLI, check its install state and releases:

Terminal
okibi clis hosting status my-cli
okibi clis releases my-cli
You seeWhat to do
Official release: noneSelect one with okibi clis release set my-cli --run <run-id>.
404 from the install URLThe plain install link works only when visibility is public. With workspace visibility, each member gets their own command from okibi clis hosting status.
no my-cli build published for linux-arm64 yetThe official release has no build for that platform. Select another release.
An error that starts with unsupported OSThe sh installer is for macOS and Linux. On Windows, add .ps1 to the install URL and run it in PowerShell.

If okibi update says this installation predates automatic updates; reinstall once from https://okibi.ai/install, run the installer again. See Releases and install.

The generated CLI's API calls fail

Your generated CLI calls your API, not Okibi. First, check the base URL compiled into the official release:

Terminal
okibi clis endpoint status my-cli
okibi clis endpoint set my-cli https://api.example.com

endpoint set publishes a config-only release. It doesn't run a new generation.

Then check the credential on the machine that fails:

Terminal
my-cli auth status
my-cli doctor

Your Okibi API key is not a credential for your own API. The generated CLI needs a credential your API accepts, with the right permissions.

A plan limit blocks a build

When your workspace runs out of an allowance, the build doesn't start:

  • In the CLI, an error such as api 402: plan limit reached: your plan has no generations left. Before it uploads anything, okibi generate checks there is room for another CLI, and for My GitHub, and fails with plan limit reached: upgrade to create more CLIs (dashboard billing settings). It doesn't check generations first, and --rebuild skips the check.
  • In the app: Plan limit reached. Upgrade your plan to generate again. The create form says "Your plan has no generations left." or "Upgrade to create more CLIs."

Check your plan and balances with okibi billing status, or open Settings, then Plan. Builds from an OpenAPI spec, accepting an improvement, Save & build, and migrations don't use a generation. A custom request can. See Plans and billing.

the platform is at its concurrent-generation capacity. Try again in a few minutes is not about your plan. Wait a few minutes and try again.

Report a problem

Email hello@okibi.ai with:

  • The output of okibi --version
  • The command you ran, with any keys removed
  • Your workspace slug and the run ID
  • The output of okibi status <run-id> --json
  • What you expected to happen

Never send API keys (they start with okb_) or install commands printed by okibi clis install. Report security issues to the same address. See How Okibi handles your code.