> Talon release: v1.17.0 (410f1015a621326e722ebfb0fb9e84adf2a6a6dc) > Canonical page: https://dativo.io/talon/docs/copaw-docker-primer/ > Release source: docs/guides/copaw-talon-primer/docker-copaw-talon-primer.md > Reviewed documentation correction: 7c4389dcca6728cf22edfecd395291ba649fb7f1 > Publication details: https://dativo.io/talon/docs/publication.json # Docker primer: CoPaw + Talon **Credential handling:** Set `OPENAI_API_KEY` in the local `.env` as shown below; keep the file out of version control. Load real credentials from your secret manager; pass values to `talon secrets set` on stdin. Keep generated Talon use-case keys in the intended application's secret store. For authenticated remote deployments, follow the secure installation procedure in the [existing application guide](https://dativo.io/talon/docs/add-talon-to-existing-app/). Run Talon as a gateway in front of your LLM provider. CoPaw sends every chat request to Talon; Talon resolves the agent from the presented key, scans for PII, enforces cost and model limits, forwards to the provider, and writes an audit record. ## What you need - **Base URL** in CoPaw: `http://localhost:8080/v1/proxy/openai/v1` (or `http://:8080/v1/proxy/openai/v1`). - **API Key** in CoPaw: the primer agent's **Talon agent key** — the value minted into the vault secret referenced by `agent.key.secret_name` in this directory's `agent.talon.yaml` (`gateway-copaw-primer-talon-key` vault entry; generate a random value, retain it in the intended secret manager and supply it via stdin). Not your real OpenAI/DashScope key. Talon stores the real provider key in its vault; CoPaw only ever holds the agent key, which resolves to exactly one agent and its tenant. ## Prerequisites - Docker and Docker Compose - **Image build:** This primer builds the Talon image from the repo root (`context: ../..`). You need a clone of the [Talon repo](https://github.com/dativo-io/talon). Alternatively, use a pre-built image if available (e.g. `ghcr.io/dativo-io/talon:latest`) and set `image: ghcr.io/dativo-io/talon:latest` in `docker-compose.yaml` instead of the `build` block. - Your real OpenAI (or DashScope) API key for `.env` ## Quick start 1. **Copy env and set your provider key** ```bash cd docs/guides/copaw-talon-primer cp .env.example .env # Edit .env: OPENAI_API_KEY=sk-your-key ``` 2. **Build and run Talon** ```bash chmod +x entrypoint.sh docker compose build docker compose up -d ``` 3. **Configure CoPaw** In CoPaw Console (Settings → Models) or via env: - Base URL: `http://localhost:8080/v1/proxy/openai/v1` - API Key: the agent key minted for `gateway-copaw-primer-talon-key` 4. **Verify** `talon audit list --agent gateway-copaw-primer` (the `agent.name` from `agent.talon.yaml` is the evidence `agent_id`) and `GET /v1/copaw/stats` (admin key). See [CoPaw integration](https://dativo.io/talon/docs/copaw-integration/) for full steps and troubleshooting. --- ## You're done You now have CoPaw + Talon running in Docker. Talon is the gateway in front of your LLM provider; every request is logged, policy-checked, and recorded. **Next steps:** | I want to… | Doc | |------------|-----| | Cap cost or restrict models | [How to cap daily spend per team or application](https://dativo.io/talon/docs/cost-governance-by-agent/) | | Run CoPaw + Talon without Docker | [How to govern CoPaw with Talon](https://dativo.io/talon/docs/copaw-integration/) | | Export evidence for auditors | [How to export evidence for auditors](https://dativo.io/talon/docs/compliance-export-runbook/) | | Add another app through the gateway | [Add Talon to your existing app](https://dativo.io/talon/docs/add-talon-to-existing-app/) |