You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gpt-pilot/docs/cli/capability.md

2.0 KiB

summary read_when title
Infer-first CLI for provider-backed model, image, audio, TTS, video, web, and embedding workflows
Adding or modifying `openclaw infer` commands
Designing stable headless capability automation
Inference CLI

Inference CLI

openclaw infer is the canonical headless surface for provider-backed inference workflows.

openclaw capability remains supported as a fallback alias for compatibility.

It intentionally exposes capability families, not raw gateway RPC names and not raw agent tool ids.

Command tree

 openclaw infer
  list
  inspect

  model
    run
    list
    inspect
    providers
    auth login
    auth logout
    auth status

  image
    generate
    edit
    describe
    describe-many
    providers

  audio
    transcribe
    providers

  tts
    convert
    voices
    providers
    status
    enable
    disable
    set-provider

  video
    generate
    describe
    providers

  web
    search
    fetch
    providers

  embedding
    create
    providers

Transport

Supported transport flags:

  • --local
  • --gateway

Default transport is implicit auto at the command-family level:

  • Stateless execution commands default to local.
  • Gateway-managed state commands default to gateway.

Examples:

openclaw infer model run --prompt "hello" --json
openclaw infer image generate --prompt "friendly lobster" --json
openclaw infer tts status --json
openclaw infer embedding create --text "hello world" --json

JSON output

Capability commands normalize JSON output under a shared envelope:

{
  "ok": true,
  "capability": "image.generate",
  "transport": "local",
  "provider": "openai",
  "model": "gpt-image-1",
  "attempts": [],
  "outputs": []
}

Top-level fields are stable:

  • ok
  • capability
  • transport
  • provider
  • model
  • attempts
  • outputs
  • error

Notes

  • model run reuses the agent runtime so provider/model overrides behave like normal agent execution.
  • tts status defaults to gateway because it reflects gateway-managed TTS state.