Connect → llm

Use AxForge with llm

llm (Simon Willison's CLI) talks to models from the terminal. Register AxForge as an OpenAI-compatible model with one config file.

1. Add the model

Create extra-openai-models.yaml in llm's config dir — find it with dirname "$(llm logs path)":

# extra-openai-models.yaml
- model_id: axforge            # the name you'll pass to -m
  model_name: chat            # the model id the API expects
  api_base: "https://api.axforge.ai/v1"
  api_key_name: axforge       # the NAME of a stored key (below)

2. Store the key & call it

$ llm keys set axforge        # paste your AxForge key at the prompt
$ llm -m axforge "Say hello in one line"
$ llm models                   # axforge should appear in the list

Include /v1, and mind api_key_name. llm's OpenAI client appends /chat/completions, so api_base must be https://api.axforge.ai/v1 (some local-server examples omit it — don't copy that here). api_key_name is the name of the key you set with llm keys set, not the key value.

© 2026 AxForge · EU-hosted AI infrastructure Pricing Docs Trust Privacy Terms