---
name: prism-inference
description: Configure coding agents to use Prism inference.
---

# Prism Inference

## Contract

- OpenAI base URL: `https://api.prisminference.com/v1`
- Anthropic base URL: `https://api.prisminference.com`
- API key: `PRISM_API_KEY`
- Models: `deepseek-v4.1-flash`, `gemma-4-31b`
- Model catalog: `GET https://api.prisminference.com/v1/models`
- Guides: `https://docs.prisminference.com/guides/coding-agents`

## Setup

1. Identify the harness and read its guide.
2. Inspect existing configuration without exposing secrets.
3. Query the live model catalog.
4. If no key exists, ask the workspace owner for an existing `PRISM_API_KEY`.
   Prism does not offer agent self-signup.
5. Store the key immediately using the harness-specific method below. Never
   repeat, log, or commit it, or include it in the final response.
6. Configure `deepseek-v4.1-flash` by default and validate the provider and
   model.

## Harnesses

- Codex: keep `PRISM_API_KEY` in the environment selected by `env_key`. Guide:
  `https://docs.prisminference.com/guides/codex`.
- OpenCode: use `/connect`, select **Other**, and enter `prism` as the provider
  ID so OpenCode stores the key in its native auth store. Guide:
  `https://docs.prisminference.com/guides/opencode`.
- Hermes: install `prismhq/hermes-prism-provider`, run
  `hermes plugins enable prism --no-allow-tool-override`, then
  `hermes config set PRISM_API_KEY "$PRISM_API_KEY"`,
  `hermes config set model.context_length 1000000`, and
  `hermes gateway restart`. Never run `hermes config get` for model settings
  because it prints the raw key. Guide:
  `https://docs.prisminference.com/guides/hermes`.
- OpenClaw: install `clawhub:openclaw-plugin-prism`, then pipe the key to
  `openclaw models auth paste-api-key --provider prism`. Guide:
  `https://docs.prisminference.com/guides/openclaw`.

Qualified model IDs are harness-specific and never sent on the wire. Hermes
selects `prism:deepseek-v4.1-flash`; OpenCode and OpenClaw select
`prism/deepseek-v4.1-flash`; all three send the bare `deepseek-v4.1-flash` to
Prism. Codex uses Responses; the other three use Chat Completions.

## Rules

- Never print, log, commit, or return an API key.
- Preserve unrelated providers and settings.
- Do not inspect credential-store files.
- Follow machine-readable error `fix` instructions instead of retrying
  unchanged.
