> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bijection.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Provider packs

> Place provider packs in your app: whose account serves them, what they may receive, spend limits and models inside your boundary.

A provider pack is a function that answers one receiver: a subtree of
targets, one per provider operation. Place it in the app tree; its path
names it. Each pack is a [slot](https://docs.bijection.com/operate/placement.md) that speaks its vendor's
API, so the program says which vendor and model it calls, and the
installation says whose account serves them.

```ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { app } from "@bijectionhq/bijection";
import { cohereReceiver, openaiCompatibleReceiver, openaiReceiver } from "@bijectionhq/pack-providers";
import { docs } from "./labels";

export default app({
  openai: openaiReceiver(),
  cohere: cohereReceiver(),
  local: openaiCompatibleReceiver({ label: docs }),
  // ...
});
```

| Pack | Operations |
| - | - |
| `openaiReceiver` | `responses`, `chatCompletions`, `embeddings` |
| `anthropicReceiver` | `messages`, `countTokens` |
| `azureOpenAIReceiver` | `embeddings` |
| `bedrockReceiver` | `titanEmbeddings`, `cohereEmbeddings` |
| `vertexReceiver`, `vertexRankingReceiver` | `predict` and batch operations; `rank` |
| `cohereReceiver` | `embed`, `rerank` |
| `voyageReceiver` | `embeddings`, `rerank` |
| `openaiCompatibleReceiver` | `embeddings`, `rerank`, `chatCompletions` on vLLM, Ollama or TEI |
| `openaiBatchReceiver`, `azureOpenAIBatchReceiver`, `bedrockBatchReceiver`, `gcsStagingReceiver`, `s3StagingDestination` | The batch and staging operations bulk embedding uses |

Each operation is a target you could submit to directly, but the
[models library](https://docs.bijection.com/models) shapes the request for you. Every pack uses the
task's `once` as its idempotency contract.

## Options

A slot pack takes one option, `label`: the receiving label, public by
default. The result uses the join with the sender’s commit label. Code names
no endpoint, key or meter. Each pack's protocol declares its meters (input,
output and cache tokens for language models), every provider of the slot
reports usage in them, and a spend limit is a
[budget](https://docs.bijection.com/operate/usage.md#budgets) over those meters.

The batch, staging and Vertex AI receivers (`openaiBatchReceiver`,
`azureOpenAIBatchReceiver`, `bedrockBatchReceiver`, the staging receivers,
`vertexReceiver`, `vertexRankingReceiver`) are not slots yet: they name
their upstream in code and keep their own options.

| Option | Meaning |
| - | - |
| `label` | The receiving label, public by default. |
| `secret` | The placed `secret()` holding the upstream's credential; without it the receiver declares its own at `<path>.credential`. |
| `timeout` | A duration, such as `{ minutes: 2 }`. |
| `meter` | `{ reserve }`: reserve tokens at submit (`vertexReceiver`'s `predict`, the batch receivers' batch creation) against the [budget](https://docs.bijection.com/operate/usage.md#budgets) covering the sending function. |
| `batchMeter` | On `vertexReceiver`, a separate fixed token limit for batch creation. |

## Whose account serves a pack

An unbound pack is managed, where the installation's host offers one for
its vendor, and its usage appears on your Bijection bill. A Bijection hosting
cell serves the Anthropic, Cohere and Bedrock packs itself, on Bijection's
Amazon Bedrock account in the cell's region. It offers no managed OpenAI,
Azure OpenAI, Voyage or OpenAI-compatible account, so an unbound pack of
those is refused `NotOffered` at deploy: bind it to your own account or
server. `bijection placement offers` lists what your host offers.

A managed pack serves the models in Bijection's managed model table that run
in the cell's region, by their vendor name (`claude-sonnet-4-5` or
`claude-sonnet-4-5-20250929`, `embed-v4.0`, `rerank-v3.5`). Each answer is
priced at that table's list price from the usage Bedrock reports. A managed
Anthropic pack answers whole messages: a request with `stream: true` is
refused. Each installation has a token rate on managed models; a request
over it is answered `429` in the vendor's error shape, as is a request while
Bedrock is busy, so retry it later.

To see what a pack's account serves, ask the installation; it lists the
models with the account the slot is placed on, so no vendor key reaches
your machine:

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection models available --slot ai.anthropic
bijection models add triage --model anthropic/claude-haiku-4-5 --slot ai.anthropic
```

`models add` writes a pinned, dated language entry into `bijection/models.ts`
with the bounds and price the account reports. Its flags (`--context-tokens`,
`--max-output-tokens`, `--input-price`, `--output-price`) supply only what the
account does not report, and without `--slot` they are required. A managed
Bedrock slot lists the cell's offered models. A customer Bedrock account
lists the region's foundation models with the slot's AWS credential, which
needs `bedrock:ListFoundationModels`. AWS returns model IDs and names. Supply
the bounds and prices when adding those models. For a private control-plane
endpoint, set `catalogUrl` and include its host in the binding's hosts. A
network relay uses the slot's relay target name with `-models` appended.
For Voyage, add the model with the flags from the vendor's published
catalog. [Bedrock discovery API](https://docs.aws.amazon.com/bedrock/latest/APIReference/API_ListFoundationModels.html)
· [Voyage model catalog](https://docs.voyageai.com/docs/choose-a-model)

To use your own vendor account, bind the pack to it in the installation's bindings file:

```ts bindings.ts theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
import { placement } from "@bijectionhq/bijection";
import { cohereAccount, openaiAccount } from "@bijectionhq/pack-providers";
import app from "./bijection/app";
const { bind, bindings } = placement;

export default bindings([
  bind(app.local, openaiAccount({ url: "https://models.internal.example.com", credential: "local.key" })),
  bind(app.openai, openaiAccount({ credential: "openai.key" })),
  bind(app.cohere, cohereAccount({ credential: "cohere.key" })),
]);
```

```bash theme={"theme":{"light":"github-light-default","dark":"github-dark-default"}}
bijection secret set openai.key
```

Each vendor's pack has its account constructor in
`@bijectionhq/pack-providers` (`openaiAccount`, `anthropicAccount`,
`cohereAccount`, …). A model pack's protocol is its vendor's own API, so
`endpoint` (Bijection's target wire) does not serve it. An OpenAI-compatible
server or gateway speaks the OpenAI API itself: bind it with
`openaiAccount({ url, hosts?, credential })`, which names that origin instead
of OpenAI's. Two packs can share one key by naming the same `credential`.
Switching accounts
changes no code and no model: the model ID stays in your
[catalog](https://docs.bijection.com/models), and after the deploy new submits go to the new account
while tasks already submitted finish on the old one.

## Egress follows labels

Sending text to a model is egress. The host refuses a submit from a frame
whose label the pack's `clearance` does not admit. `ai.cleared(key, label)`
asks the same question when your code chooses a model.

A label can also require evidence for specific provider properties.
The selected account alone supplies no evidence about who can access the
data or where the model runs. Use `label({ placement: ... })` for the
properties your data needs. [Requirements and offers](https://docs.bijection.com/operate/placement.md#requirements-and-offers)

To keep such text off every vendor, use:

* `openaiCompatibleReceiver` bound to your own model server; or
* a compute launcher running `@bijectionhq/pack-compute/providers/models`
  next to your model server, passed to `models({ compatible })`. Compute
  stays yours; see [external compute](https://docs.bijection.com/transforms/external-runtimes.md).

Each embedding and rerank operation refuses a request above its provider's
documented batch bound before anything is sent.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.