Oko/Docs

Command reference

oko pricing refresh

Refreshes Oko’s locally cached model-token price catalog from provider pages.

Invocation#

Command
oko pricing refresh [--force]

Inputs and options#

  • --force ignores a cache already checked today.

Output and state effect#

  • oko fetches the Anthropic, OAI and Kimi pricing pages, strips them to text, reads each declared model's rates and writes ~/.oko/token-pricing.json — the catalog oko telemetry tokens prices with — then prints, as JSON, whether it wrote, the path, the day checked and how many entries it holds.
  • The suggestions tick asks for a refresh once per local day and keeps the last refusal.

Refusals and safe exits#

  • Unknown pricing subcommands are refused. An HTTP error or invalid text from a page, or a page no longer stating a declared rate (named), refuses the whole refresh and leaves the existing catalog in place; a write failure names the path.

CLI reference#