# Codex

Use Codex to add a Blaschke client to your project. Blaschke does not currently provide the OpenAI Responses API required for a native provider connection.

## Add Blaschke to your project.

Keep Codex's current model provider and ask it to integrate an OpenAI-compatible Blaschke client into the application.

### Codex 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.

Responses requests, structured streaming and tool schemas require an adapter and a tested contract, not just a different base URL.

**Native provider unavailable.** There is no Blaschke Codex connector or tested Responses endpoint in this version. Use the project integration above or a client that speaks the supported Chat Completions protocol.

## Related guides

- [Use Pi](https://beta.blaschkelabs.com/docs/agents/coding-agents/pi): Connect through OpenAI Chat Completions.
- [Build an agent](https://beta.blaschkelabs.com/docs/agents/build): Implement a bounded client with explicit tool permissions.

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

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