Models and providers
Sign in and choose a model
- Run
autolith auth PROVIDER. ReplacePROVIDERwith the provider name. In a session, use(auth "PROVIDER"). - Follow the sign-in prompt. For an API provider, paste your key at the hidden prompt.
- Run
(models)to refresh the list, then(model)to choose a model.
chatgptuses your ChatGPT subscription. Useautolith auth chatgpt deviceif you need a device code.openai-apiuses an OpenAI API key.copilotuses your GitHub Copilot subscription. Pickcopilot/autoon Student or Free plans. For GitHub Enterprise Cloud with data residency, setAUTOLITH_COPILOT_DOMAINto yourTENANT.ghe.comhostname before sign-in and subsequent launches.- For OpenCode, use
opencode-gooropencode-zenaccording to your plan. - Use
geminifor the Gemini subscription. For Google Vertex AI, sign in withgcloud auth application-default login, setGOOGLE_CLOUD_PROJECTandGOOGLE_CLOUD_LOCATION, then choose a model fromvertex-geminiorvertex-anthropic.
Use autolith models to list locally known models. Use (model "PROVIDER/MODEL") to save a choice or autolith --model PROVIDER/MODEL to choose a model for one launch. To pass an exact catalog ID, use --provider PROVIDER --model MODEL.
If you use ChatGPT and want faster replies, try (settings :codex-fast-mode-p t). Fast mode is available for supported models and counts more heavily against plan usage.
Add another OpenAI-compatible provider
Use register-openai-compatible-provider in init.lisp for services that support streaming Chat Completions. Adapt the Ollama example:
- Choose a unique
:nameand set:endpointto the full Chat Completions URL. - List model IDs in
:models, set:models-endpointto the full model list URL, or set both. List an ID explicitly if you want to select it on the first launch. - Restart Autolith. Set the environment variable you named in
:api-key-environment-variableor save a key withautolith auth PROVIDER. If both are set, Autolith uses the environment variable. - Run
(models :provider "PROVIDER")to refresh the catalog. Select a model with(model "PROVIDER/MODEL").