# Agent compatibility

Choose a client whose protocol matches Blaschke, then test the full tool loop before unattended use. Compatible message syntax does not start a worker or grant local tool permissions.

## Coding agents.

Five focused guides cover the supported OpenAI connections and the clients that need a project-level integration.

- [Pi](https://beta.blaschkelabs.com/docs/agents/coding-agents/pi): Configure an OpenAI-completions provider for a served model.
- [Cursor](https://beta.blaschkelabs.com/docs/agents/coding-agents/cursor): Keep Cursor's model and add a Blaschke client to your project.
- [Claude Code](https://beta.blaschkelabs.com/docs/agents/coding-agents/claude-code): Add a project client; the native Anthropic adapter is not available.
- [Codex](https://beta.blaschkelabs.com/docs/agents/coding-agents/codex): Add a project client; the OpenAI Responses adapter is not available.
- [OpenCode](https://beta.blaschkelabs.com/docs/agents/coding-agents/opencode): Configure an OpenAI-compatible provider.

Start with the Quick setup prompt if you want a coding agent to guide the configuration. Each prompt asks before starting infrastructure or sending inference.

## What an agent gets.

The gateway carries messages and function-call data; your agent performs authorized tools locally.

**Agent capabilities and boundaries**

| Area | Current behavior |
| --- | --- |
| Context | Input, output, tools and results share the selected model's configured context window. |
| Output | Use the selected model's configured output cap, currently up to 16,384 tokens. |
| Tools | OpenAI function tools, up to 64 definitions per request, tool_choice and structured call results. |
| Reasoning | Model-dependent request options and reasoning metadata; not every served model supports reasoning. |
| Formats | OpenAI Chat Completions with JSON or server-sent event streaming. |
| Unavailable protocols | No OpenAI Responses or Anthropic Messages endpoint. No intrinsic translation by changing the base URL. |

## Requirements for a custom provider.

Use an OpenAI-compatible client and follow the request schema.

- Use `https://beta.blaschkelabs.com/v1` as the base URL and your API key as the bearer token.
- Choose a served model by its exact ID from `GET /v1/models`; do not assume another model's behavior or controls.
- Omit unsupported fields, including `logprobs`, `parallel_tool_calls` and function `strict:true`.
- Keep tool schemas and results in the conversation history, preserving each `tool_call_id`.
- Bound `max_tokens`, model turns, concurrency and local tool permissions.

**Verify your own client.** A completed read-only Pi tool round trip with one model does not validate every agent, model, tool choice or unattended workflow.

## Long-running and unattended use.

Coding agents can send large histories and many requests, so the client needs explicit operational limits.

- Use streamed responses for progress and a bounded output budget for each step.
- Reduce irrelevant tools rather than exceeding the request's function-definition limit.
- Use bounded retries. A timeout or dropped stream does not establish whether the worker received or ran the request.
- Keep secrets, local tool execution and permission decisions in the client or server boundary that owns them.

## Related guides

- [Quick setup](https://beta.blaschkelabs.com/docs/agents/quick-setup): Give a coding agent one scoped setup prompt.
- [Build an agent](https://beta.blaschkelabs.com/docs/agents/build): Implement a bounded tool loop with the OpenAI message format.

Source: https://beta.blaschkelabs.com/docs/agents

Markdown: https://beta.blaschkelabs.com/docs/md/agents.md
