# Claude Code

Use Claude Code to add a Blaschke client to your project. Blaschke does not yet provide the Anthropic Messages API required for a native provider connection.

## Add Blaschke to your project.

This preserves Claude Code's existing provider and gives the application a supported OpenAI-compatible client.

### Claude Code project prompt

```text
Set up Blaschke in this project. My coding agent keeps its existing model provider; I want to use Blaschke from the project I'm building.

Blaschke uses an OpenAI Chat Completions-compatible API. Its native gateway does not provide Anthropic Messages or OpenAI Responses.

- Base URL: https://beta.blaschkelabs.com/v1
- API key: read it from BLASCHKE_API_KEY. Never put the key in source, config, logs or git.
- Model: read the exact model ID from BLASCHKE_MODEL. If it is missing, ask me to choose an ID returned by model discovery. Its inference worker must be configured and running separately.

Do this:
1. Find where the project already calls an LLM, or add a small client if it has none. Use the official OpenAI SDK for the project's language with the base URL above.
2. Add BLASCHKE_BASE_URL, BLASCHKE_API_KEY and BLASCHKE_MODEL to .env.example without secret values, and load them using the project's existing configuration pattern.
3. Check GET https://beta.blaschkelabs.com/v1/models with the bearer key. Confirm BLASCHKE_MODEL exactly matches a returned ID.
4. Keep request output bounded with max_tokens. Do not send unsupported fields such as logprobs, parallel_tool_calls or function strict:true.
5. Only send inference if I explicitly ask, and print the returned model if I do. Do not start a worker, commit or deploy.
6. Tell me what you changed and any limits that remain.
```

## Do not substitute the protocol.

Claude Code's native Anthropic Messages request, streaming and tool formats differ from OpenAI Chat Completions.

**Native provider unavailable.** Do not point Claude Code's Anthropic model settings at the OpenAI Chat Completions base URL and call them supported. Use the project client above, Pi, or OpenCode for the current protocol.

## Related guides

- [Agent compatibility](https://beta.blaschkelabs.com/docs/agents): Compare protocols before choosing a client.
- [Test the OpenAI client](https://beta.blaschkelabs.com/docs/quickstart): Authenticate and make a bounded first request.

Source: https://beta.blaschkelabs.com/docs/agents/coding-agents/claude-code

Markdown: https://beta.blaschkelabs.com/docs/md/agents/coding-agents/claude-code.md
