Skip to main content
Pi (the @earendil-works/pi-coding-agent CLI) configures models through a JSON file and can talk to a Valkyrie deployment over either the OpenAI-compatible or the Anthropic-compatible API.

Install

Configure a provider

Add Valkyrie to ~/.pi/agent/models.json:
Then run Pi against it:

OpenAI or Anthropic

Pi picks the protocol from the api field:
  • "api": "openai-completions" uses the OpenAI-compatible route (baseUrl ends in /v1).
  • "api": "anthropic-messages" uses the Anthropic-compatible route (set baseUrl to the deployment base without /v1; Pi appends /v1/messages).
$VALKYRIE_API_KEY reads the key from your environment. Use your deployment slug (deployment-{id}) or an alias in the URL, and set the model id to what your deployment serves (for the shared Qwen deployment that’s RadixArk/Qwen3.8-27B-NVFP4 with baseUrl https://valkyrie-back.azumo.com/qwen/v1).