MyNixOS website logo
option

programs.pi-coding-agent.models

Custom model providers written to ~/.pi/agent/models.json.

Each provider entry may contain baseUrl, api, apiKey, compat, and a models list with id, name, reasoning, etc.

See https://pi.dev/docs/latest/models for the documentation.

Declarations
Type
JSON value
Default
{ }
Example
{
  providers = {
    ollama = {
      api = "openai-completions";
      apiKey = "ollama";
      baseUrl = "http://localhost:11434/v1";
      models = [
        {
          id = "llama3.1:8b";
        }
      ];
    };
  };
}