agentc
GitHubagentc-sh/agentc
agentc
GitHubagentc-sh/agentc
›Introduction
Get started›Concepts in 5 minutes›Build your first agent›Add your first tool›Serve and connect
Concepts›Architecture overview›The manifest›The compilation pipeline›Archetypes›The graph›Tools and capabilities›Runtime libraries›Skills›Agents and prompts›Serving and protocols›Observability
Guides›Author a manifest›Write a tool›Give your agent a filesystem›Control network egress›Connect external tools via MCP›Connect agents via A2A›Use the bash tool›Control tool access with capabilities›Write templated prompts›Manage prompts with Langfuse›Pass context from the client›Configure a model provider›Connect a CopilotKit frontend›Deploy a standalone binary›Deploy with Docker and PostgreSQL›Instrument with OpenTelemetry›Extend code generation with blocks
Reference
Manifest
›build›locals›runtime›filesystem›network
providers
›Anthropic›OpenAI›Ollama›OpenRouter›xAI›Gemini›Hugging Face
›agent›graph›tool›skill›http_server
Runtime
›Observability

Ollama

Configuration for the Ollama model provider.

The ollama sub-block configures a local Ollama runtime. Ollama runs entirely on the local machine and does not require an API key.

Fields

FieldTypeRequiredruntime()Description
modelslistnonoAllowlist of models for this provider. Each entry is a plain string or a config object with name and params. When omitted, no allowlist is enforced.
configblocknoConnection configuration.
config.base_urlstringnoyesBase URL of the Ollama server. Defaults to http://localhost:11434 when omitted.
paramsblocknoProvider-level inference parameter defaults. Applied to every request unless overridden at the model level.

The config block is optional. When omitted, the client connects to http://localhost:11434, which is the default address of a locally running Ollama instance.

params

The params block sets inference parameter defaults for all models under this provider. All fields are optional and support runtime().

FieldTyperuntime()Description
max_tokensintegeryesMaximum number of tokens to generate.
temperaturefloatyesSampling temperature.
top_pfloatyesNucleus sampling probability.
top_kintegeryesTop-K sampling limit.
stop_sequenceslist of stringsyesSequences that stop generation.
frequency_penaltyfloatyesPenalty for token frequency.
presence_penaltyfloatyesPenalty for token presence.
seedintegeryesSeed for deterministic sampling.
provider_paramsobjectyesProvider-specific parameters passed directly to the API. Use this for options not covered by the typed fields above.

Example

agent.acl
providers {
  ollama {
    models = [
      "llama3.2",
      {
        name = "mistral"
        params {
          temperature = 0.9
          seed        = 42
        }
      }
    ]

    config {
      base_url = runtime("OLLAMA_BASE_URL", "http://localhost:11434")
    }

    params {
      max_tokens  = 2048
      temperature = 0.6
    }
  }
}

In this example, requests to llama3.2 use the provider-level defaults. Requests to mistral use temperature = 0.9 and seed = 42 from its model-level params, while inheriting max_tokens from the provider-level defaults.

← PreviousOpenAINext →OpenRouter

© 2026 pogue.dev. All rights reserved.

Creative CommonsCC BY 4.0
On this pageFieldsparamsExample

Search docs

Search the agentc documentation