# Quick setup

Connect one supported coding-agent path to Blaschke with a single, scoped prompt that preserves existing settings and avoids inference during setup.

## Prepare your environment.

Export your API key before giving this prompt to an agent. Use the Quickstart if you need a key or help choosing a model.

### Shell environment

```shell
export BLASCHKE_API_KEY="blsk_..."
export BLASCHKE_MODEL="<exact-model-id>"
```

Worker credentials belong on the server, not in your client configuration.

## Copy the prompt.

Paste this into the client or project agent you want to configure. It covers only Pi, Cursor, Claude Code, Codex and OpenCode.

### Blaschke quick setup

```text
Connect my coding agent to Blaschke. Ask which one to connect if I haven't said.

I may choose Pi, Cursor, Claude Code, Codex or OpenCode. Read only the selected guide at:
https://blaschkelabs.com/docs/md/agents/coding-agents/<agent>.md

Replace <agent> with pi, cursor, claude-code, codex or opencode. If you cannot open the URL, ask me to paste that guide.

Important boundaries:
- Pi and OpenCode can use the OpenAI-compatible Chat Completions provider.
- For Cursor, Claude Code and Codex, add a Blaschke client to my project. Do not change the harness's own model provider. Claude Code's native Anthropic protocol and Codex's OpenAI Responses protocol are not implemented by this Blaschke gateway.
- Use the exact model ID in BLASCHKE_MODEL. If it is missing, ask me to choose an ID returned by GET /v1/models. Model metadata does not prove that inference is available.

Rules:
- Use the installed client's current configuration reference when one is available.
- Back up any config before changing it. Preserve unrelated providers, models, memories and settings.
- Read the client key from BLASCHKE_API_KEY. Never print a key, write it into source or chat, or ask me to paste it here. Worker credentials belong only on the server.
- Check model discovery without inference using the selected guide's command. Require a successful response and the exact selected model ID in the metadata. Do not treat this as a live worker readiness check.
- Do not launch a worker, send inference, or broaden tool permissions unless I explicitly ask.
- Stop after setup and metadata checks. Tell me what changed, any assumptions, and how to launch the client myself.

Base URL: https://beta.blaschkelabs.com/v1
Model: $BLASCHKE_MODEL
```

**What the check proves.** A `200` response from `/v1/models` proves gateway access and returned model metadata. It does not run inference or prove that a worker is ready.

## Or pick your agent.

Use an individual guide for more specific boundaries and manual configuration.

- [Pi](https://beta.blaschkelabs.com/docs/agents/coding-agents/pi): Configure a model through the OpenAI-completions provider.
- [Cursor](https://beta.blaschkelabs.com/docs/agents/coding-agents/cursor): Add Blaschke to the project while keeping Cursor's own model.
- [Claude Code](https://beta.blaschkelabs.com/docs/agents/coding-agents/claude-code): Use a project integration; direct Anthropic Messages are unavailable.
- [Codex](https://beta.blaschkelabs.com/docs/agents/coding-agents/codex): Use a project integration; direct OpenAI Responses are unavailable.
- [OpenCode](https://beta.blaschkelabs.com/docs/agents/coding-agents/opencode): Configure an OpenAI-compatible provider.

## Related guides

- [Docs for agents](https://beta.blaschkelabs.com/docs/documentation): Choose focused Markdown or the complete documentation.

Source: https://beta.blaschkelabs.com/docs/agents/quick-setup

Markdown: https://beta.blaschkelabs.com/docs/md/agents/quick-setup.md
