# Example profile: Local or self-hosted model
# Point this at any tool exposing /v1/messages: llama.cpp, vLLM, Ollama, LM Studio.
# For tools that only speak OpenAI format, run LiteLLM as a translation proxy
# (https://github.com/BerriAI/litellm).
#
# Add to your config with:
#   ccode add-profile --from-url https://ccode.kronis.dev/configuration-examples/local.yaml
#
# ccode will prompt you for the local server URL during import.
#
# This file uses "your-local-model" as a placeholder in all five model slots.
# After import, run `ccode edit-config` and replace "your-local-model" with
# your real model name in each slot. (Local setups generally use the same model
# everywhere, so a single find/replace is enough.)

local:
  # the base URL is part of the prompt field below, user will fill this out when pulling
  # anthropic_base_url: "http://localhost:8080/v1"
  anthropic_auth_token: "not-needed"
  models:
    model:
      model: "your-local-model"
      name: "Local Model"
      description: "Locally hosted model via ccode"
    opus:
      model: "your-local-model"
      name: "Local Model"
      description: "Locally hosted model via ccode"
    sonnet:
      model: "your-local-model"
      name: "Local Model"
      description: "Locally hosted model via ccode"
    haiku:
      model: "your-local-model"
      name: "Local Model"
      description: "Locally hosted model via ccode"
    subagent:
      model: "your-local-model"
      name: "Local Model (subagent)"
      description: "Locally hosted model via ccode"
  env:
    CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS: "1"
    DISABLE_INTERLEAVED_THINKING: "1"
    CLAUDE_CODE_DISABLE_NONSTREAMING_FALLBACK: "1"
  prompt:
    - anthropic_base_url
