Integration
Connect workstations to a shared external service, such as an LLM gateway or an API that needs a key, so the tools on them use it with no per-workstation setup.
An Integration connects workstations to a shared external service. It holds the service’s address, a reference to the Secret with its key, and the settings the tools on each workstation need to use it.
Without one, you set up each tool on each workstation by hand, and each tool does it differently. With an Integration you declare the service once, and every workstation it reaches is set up the same way. The key stays in one Secret instead of being pasted into workstations.
apiVersion: workstations.ringleader.dev/v1
kind: IntegrationAn Integration has one of two types:
type: llmpoints the coding agents on each workstation at an LLM gateway. It configures Claude Code, Codex, pi and OpenCode, as Supported agents describes. This page describes it.type: httpProxyadds a key to requests for the hosts you name as they leave the workstation, so the key is never on it. Injected credentials describes it.
An Integration of either type can also register an MCP server with Claude Code, Codex, OpenCode and pi. It reaches Codex on every workstation, and each of the others where its devtool is installed. See MCP server fields and names.
For what is true of every Integration, see Integration behavior. To connect workstations to an LLM gateway, see LLM gateways for coding agents. To register an MCP server, see MCP servers for coding agents.
Vendors
Four vendors are supported:
vendor | Endpoint | Notes |
|---|---|---|
openrouter | Supplied by Ringleader | url must not be set. Configures Claude Code and every other tool that speaks Anthropic’s protocol, Codex, pi and OpenCode. |
litellm | Yours (url required) | A self-hosted LiteLLM proxy. Both protocols are served under one address, so Claude Code and Codex are configured. pi and OpenCode can use it once model is set. |
bifrost | Yours (url required) | A self-hosted Bifrost gateway. Both protocols are served under one address, so Claude Code and Codex are configured. pi and OpenCode can use it once model is set. |
custom | Yours (url required) | Any other gateway. Configures the tools that speak Anthropic’s protocol. Codex, pi and OpenCode are left alone, because Ringleader cannot work out a custom endpoint’s OpenAI-compatible address from its Anthropic one. |
A self-hosted endpoint’s url is checked when you apply. It must be an http:// or
https:// URL, it may use only a limited set of characters, and it may not carry a user name
or password.
Your operator may limit which hosts and path prefixes you can name. A refusal names the field
and the reason.
LLM gateways for coding agents explains how to choose a vendor and a model, and the provider Ringleader adds for pi and OpenCode.
Providers when Ringleader holds the key
With source: ringleader, the key stays with Ringleader, and only Claude Code is configured, as
Gateway keys held by Ringleader for Claude Code
explains. Three providers are supported:
| Provider | Upstream | url |
|---|---|---|
anthropic | Anthropic’s API | Must not be set. |
openrouter | OpenRouter | Must not be set. |
custom | Your own gateway | Required. |
Name exactly one provider. To use a second provider, apply a second Integration. With this
source, vendor, url, model and credentialRef under endpoint are refused.
A custom provider’s url is checked like a self-hosted endpoint’s url, with one more rule.
It may not name a loopback, link-local or private address, because Ringleader’s endpoint calls
it, not your workstation. If your gateway is on an internal address, ask your operator to permit
its host.
Integration fields
| Field | Type | Description |
|---|---|---|
type | string | Required. llm or httpProxy. Each type takes its own block and refuses the other’s. |
selector.matchLabels | object | Which workstations the Integration reaches. An empty selector does not mean “every workstation”. See Integration reach. |
selector.ownerScope | bool | true limits the Integration to workstations whose owner is its author. Default false. |
llm.endpoint.source | string | Required for type: llm. external: a gateway someone else runs. ringleader: an endpoint your Ringleader deployment runs, which holds the key for the provider named under llm.providers. |
llm.endpoint.vendor | string | Required when source is external: openrouter, litellm, bifrost or custom. Refused for ringleader. |
llm.endpoint.url | string | The endpoint’s address. Required for litellm, bifrost and custom. Refused for openrouter, which supplies its own, and for ringleader. |
llm.endpoint.model | string | The model Codex, pi and OpenCode use, in the gateway’s own naming. Optional. Refused for custom and for ringleader. |
llm.endpoint.credentialRef | object | {name, key}: the Secret in this namespace that holds the gateway’s key. Optional, for a gateway that lets workstations in by their network address. Refused for ringleader, which takes its key under llm.providers. |
llm.providers | object | Required when source is ringleader, and refused for every other source. Exactly one of anthropic, openrouter or custom. |
llm.providers.<provider>.credentialRef | object | {name, key}: the Secret in this namespace that holds the provider’s key. Required unless credentialSource is set, and refused beside it. |
llm.providers.anthropic.credentialSource | object | A credential provider that gets an Anthropic token through federation, in place of a key in a Secret. Accepted only for anthropic. See Anthropic federation. |
llm.providers.<provider>.url | string | The provider’s address. Required for custom, and refused for anthropic and openrouter. |
httpProxy | object | Required for type: httpProxy, unless an injected mcp server supplies the only rule. It can contain your own host rules or the GitHub preset. See Injection fields. |
mcp | object | An MCP server to register on each workstation. See MCP server fields and names. |
The key is always a reference to a Secret, never a value in the YAML. Places that name a Secret says who must be able to read that Secret, and you must be able to read it to apply an Integration that names it.
Integration status
| Field | Type | Description |
|---|---|---|
generatedConfig | string | The name of the WorkstationConfig this Integration generates. Empty when nothing was generated. |
reach | string | Which workstations this Integration reaches now: owner (only its author’s own workstations) or admin (every workstation its labels select). |
message | string | Why nothing was generated, when nothing was. Empty otherwise. |
injection | object | For type: httpProxy: which hosts are having a key added, and why the others are not. See Check what is being injected. |
placeholder | string | For the GitHub preset: the value a request sends in its Authorization header to use this Integration’s token, rlsel- followed by the Integration’s name. See Use several GitHub identities on one workstation. |
default | bool | For the GitHub preset: whether requests that carry no placeholder get this Integration’s token. |
Injection fields
An httpProxy Integration adds a key from a Secret to a request as it leaves the workstation,
so the workstation never holds the key. Injected credentials
shows how to set it up and where it works.
Host inspection and exclusion covers
inspect and exclude.
Effects of injection on a workstation
says what a workstation does differently once a key is added.
Places that name a Secret
says who must be able to read the Secret.
For GitHub, set httpProxy.vendor: github and name the Secret that holds your personal access
token, or a credential source. Ringleader supplies the request rules for Git and the GitHub APIs.
Connect workstations to GitHub with the Ringleader GitHub App
shows the steps for the app.
spec.type is httpProxy, and spec.selector works as on every
Integration, as Integration reach
explains. The httpProxy block
takes at least one rule, a preset, or one exclusion.
| Field | Description |
|---|---|
httpProxy.vendor | vendor: github generates the GitHub request rules. It requires credentialRef or credentialSource. Do not add your own rule for github.com, api.github.com, or raw.githubusercontent.com. |
httpProxy.default | For the GitHub preset: true, the default when you leave it out, puts this Integration’s token on requests that carry no placeholder. false puts it only on requests that carry this Integration’s placeholder. Accepted only beside vendor. See Use several GitHub identities on one workstation. |
httpProxy.credentialRef | The Secret {name, key} that the GitHub preset uses. The Secret value stays off the workstation. |
httpProxy.credentialSource | A credential provider that gets a short-lived GitHub token for the preset, in place of credentialRef. Refused beside it. See The credential source. |
httpProxy.toolconfigs[] | Optional vendor tool configuration, written as toolconfigs: under httpProxy. With the GitHub preset, {name: gh} writes gh an HTTPS configuration with a placeholder token. It writes nothing when default is false. |
httpProxy.rules[] | Up to 32 rules. Each rule takes a host and either inject or inspect: true. |
rules[].host | One exact hostname: letters, digits, - and .. No wildcard, IP address, scheme, port or path. A host may appear in only one rule of an Integration. Only HTTPS on port 443 is decrypted. |
rules[].inject.header | The header to set: a letter, then letters, digits and -, at most 64 characters. Host is refused. |
rules[].inject.value | The value to set, at most 8192 characters, with exactly one ${secret:name/key} reference (or ${secret:name}) and any text around it. The reference may sit inside one ${base64:…}, which encodes its text. A value with no reference is refused, so the key never appears in the YAML. |
rules[].inspect | true to check the host’s requests without injecting. Refused beside inject. See Inspect a host without injecting. |
rules[].allowDaemonPlacement | Which local workstations may hold this rule’s key. Unset, the default, is only those the Integration’s author owns. true is every local workstation the Integration reaches, and false is none. It has no effect on a cloud workstation. Refused beside inspect. See Keys on local workstations. |
httpProxy.exclude[] | Up to 64 hosts, or *. domains, that are never decrypted. See Exclude a host from decryption. |
A rule can set headers only. It cannot change a request body or a query string, and plain HTTP on port 80 is never decrypted.
Reasons a host is not injected
status.injection.outcomes has one entry per host. An entry for a host that is not being injected
has a reason, and
Check what is being injected
shows where to read it:
| Reason | What to do |
|---|---|
SecretNotFound | Create the Secret, or fix the name or key in value. |
RingleaderOnly | The Secret is Ringleader-only, and the workstation’s provider or owner does not qualify for its key. Ringleader adds that key on a cloud workstation, and on a node-bound workstation on vz, qemu or hcs that the Secret’s owner also owns. Keys on local workstations lists every condition. For this host, use one of those workstations or an ordinary Secret. |
AccessDenied | Give the Integration’s author access to the Secret. |
OwnerAccessDenied | The Integration’s author can read the Secret, but the owner of this local workstation cannot, and Ringleader withholds the key from the owner’s computer. Give the owner access: they own the Secret, a Grant gives them access, or a role they hold has access on Secrets. Places that name a Secret says which apply, and rl secret share writes the Grant. |
EmptyValue | Put the key in the Secret. |
ValueNotServable | The value the rule builds from the Secret is longer than 8192 characters, or holds a control character such as a line break or a tab. Fix the Secret, as Create a Secret says. |
DaemonPlacementNotAllowed | The host is on a local workstation, and the rule’s allowDaemonPlacement gate is closed there: the rule sets false, or leaves it unset and the workstation’s owner is not the Integration’s author. Keys on local workstations says how to open it. |
HostContested | Another injection names the same host for the same workstation, so this Integration’s injection is not used. The other injection can be a rule of your own or an mcp server in another Integration, or a GitHub preset that is the default. On a cloud workstation, a rule and the mcp server of one Integration also clash when they name the same host. An injection in another Integration may still be used, and that Integration’s own entry says whether it is. Remove one of the two. |
DefaultContested | Two GitHub Integrations that reach the same workstation are both the default, so a request with no placeholder gets neither Integration’s token. Each Integration’s placeholder still works, unless the edge instance or edge VM that serves the workstation runs a Ringleader version older than placeholders. Set default: false on one of them. A rule of your own for a host the GitHub preset covers also counts as a default. |
NoSecretReference | The rule’s value names no Secret. Put a ${secret:name/key} reference in it. |
HostNotValid | The rule’s host is not a valid host name. Change it to one exact host name, as described under Injection fields. |
HostNotIntercepted | The edge instance or edge VM is not decrypting this host. It has not started to yet, or an exclude in some Integration names the host. |
CheckFailed | The edge instance or edge VM could not check the Secret, and is not injecting. It tries again. |
NoAuthor | The Integration has no recorded author yet. |
A host that takes a token from a credential provider can also report AuthorizationRequired,
ConsentExpired, ProviderNotFound, ProviderUseDenied, TokenUnavailable,
InstallationTokenNotOnDevice or EdgeCannotRenew.
Troubleshoot
in the GitHub App guide says what to do about each. For an MCP server, see
Troubleshoot in its own guide.
Conditions on the workstation
rl workstation describe <name> shows the condition for the workstation’s provider:
| Provider | Condition |
|---|---|
| GCP, AWS, Azure | EgressEnforced. Until an edge instance serves the workstation it reads False, with reason NoEdge when the namespace has no Edge for its provider and region. |
| hcs, vz, qemu | EgressEnforced. It reads True with reason InterceptionPending when an edge VM or the workstation’s own network process serves the workstation and a named host is not being injected. The message names the host and the cause. An hcs, vz or qemu workstation with no Edge for its provider reports only here, not on the Integration. |
The Workstation reference lists every reason.
The endpoint files
A program on a workstation finds the endpoints attached to it by reading
/etc/ringleader/integrations/. There is one JSON file, named after the Integration, for each
attached llm Integration, each Integration that registers an MCP server, and each httpProxy
Integration that adds a key. Read every file in the directory, because there is no combined file.
An httpProxy Integration whose rules only inspect hosts, and that registers no MCP server, writes
no file.
$ ls /etc/ringleader/integrations/
llm.json
$ cat /etc/ringleader/integrations/llm.json
{
"schemaVersion": 1,
"name": "llm",
"namespace": "acme",
"type": "llm",
"vendor": "openrouter",
"url": "https://openrouter.ai/api",
"environment": [
"ANTHROPIC_API_KEY",
"ANTHROPIC_AUTH_TOKEN",
"ANTHROPIC_BASE_URL",
"OPENROUTER_API_KEY"
]
}| Key | Meaning |
|---|---|
schemaVersion | The file’s format. 1 today. A program that reads it should accept a value it does not know. |
name, namespace | The Integration this file describes. |
type | The Integration’s type, llm or httpProxy. |
source | ringleader for an Integration with source: ringleader, and absent otherwise. When it is ringleader, no variable in environment holds a key, because the workstation signs in with its own token. |
vendor | For llm, the gateway you named (openrouter, litellm, bifrost or custom). Empty for httpProxy, and for an Integration with source: ringleader. |
url | For llm, the gateway’s base address. A named vendor reports its real address. A tool adds its own protocol path, such as /v1/messages for Anthropic’s protocol. |
environment | For llm, the names, sorted, of the environment variables this endpoint sets on the workstation. |
mcp | Present when the Integration registers an MCP server: its name, url and mode. |
httpProxy | Present for an httpProxy Integration that adds a key. For the GitHub preset it holds vendor (github), placeholder, default, the preset’s hosts and the gitHost that git uses. handWrittenHosts lists the hosts your own rules add a key to. It names no Secret and holds no key. |
environment lists names, never values, so the file holds no key. To get a value, read the
variable. The list is every variable the endpoint sets, not only the ones that hold a key. It
includes ANTHROPIC_BASE_URL, and for OpenRouter an ANTHROPIC_AUTH_TOKEN that is set to an
empty string on purpose, because Claude Code ignores the gateway when it is unset. To find the
variable that holds the key, go by vendor, not by a variable’s position in the list.
An endpoint with no credentialRef lists no key variables at all. They are left out, not set
to an empty string, because a tool treats an empty value differently from a missing one.
The files are mode 0640, owned by root and by the login user’s primary group. The login
user and root can read them, and no other account on the workstation can.
The provider file
For an llm Integration with a named vendor, /etc/ringleader/pi/<name>.json holds the gateway’s
OpenAI-compatible address, with the same name and mode as the endpoint file. It is written on
every workstation the Integration reaches, whether or not pi or OpenCode is installed. It exists for
openrouter, litellm and bifrost, and not for vendor: custom or source: ringleader. pi and
OpenCode read it to build their provider, and any other agent that takes a base URL can read it.
| Key | Meaning |
|---|---|
schemaVersion | The file’s format. 1 today. |
name | The vendor: openrouter, litellm or bifrost. |
api | The protocol, openai-completions. |
baseUrl | The gateway’s OpenAI-compatible address. |
apiKey | A reference to the variable that holds the key, such as $OPENROUTER_API_KEY, and never the key. Absent when the endpoint has no credentialRef. |
model | The model you set, or OpenRouter’s default. Absent for LiteLLM and Bifrost when you set none. |
The MCP file
For an Integration that registers an MCP server, /etc/ringleader/mcp/<name>.json holds the server,
with the same mode as the endpoint file. An agent that Ringleader does not register the server with
can read it. Its keys are schemaVersion, name, url, and in local mode header and value.
In local mode value is a ${secret:...} reference and not the key, so an agent can use the
file only in injected mode.
What happens to these files when an Integration stops applying, or when one cannot be written, is in End of an Integration and Endpoint file failures.
MCP server fields and names
An mcp block registers one MCP server with Codex on every workstation the Integration
reaches, and with Claude Code, OpenCode and pi on each of those workstations that has the
agent’s devtool.
MCP servers for coding agents
shows how to register one.
Every tool gets the server under the same name, which you set with name. A name holds
letters, digits, - and _, up to 32 characters, and applying an Integration with any other
name is refused. If you leave name out or empty, the server is named after the host in its
URL: the host in lowercase, without its port, cut to 32 characters, with every character other
than a letter, digit, - or _ written as _. So https://mcp.linear.app/mcp gives
mcp_linear_app. pi writes - as _ in a tool name, so a server named linear-mcp gives pi
tools named mcp__linear_mcp__<tool>.
Two servers on one workstation can ask for the same name. When names are compared, - and _
count as the same character. The server whose Integration name sorts first keeps the name, and
the others get a number: <name>_1, then <name>_2. A number also skips any server name you
declare yourself in a tool configuration. So a server’s name can change when another server is
attached or detached. Each tool then removes the old name and adds the new one, and pi drops the
settings it kept for the old name.
A server of the same name that you declare yourself, in a tool configuration, is used instead of this one in that tool.
These fields go under mcp:
| Field | Description |
|---|---|
mcp.name | The server’s name in every tool: letters, digits, - and _, up to 32 characters. Left out, the server is named after the host in mcp.url. |
mcp.url | Required. The server’s http:// or https:// address, with no user name or password in it. Your operator may limit which hosts you can name. |
mcp.mode | injected (the default) or local. |
mcp.inject | {header, value}, as on a credential injection rule. The value takes one ${secret:…} reference, which may sit inside a ${base64:…} for a server that takes Basic authentication. Required in injected mode unless credentialSource is set, and refused in local mode. |
mcp.credentialSource | A credential provider that gets a token in place of inject.value. With an mcpServer provider, mcp.url must be the provider’s url, and the token is added as Authorization: Bearer. With any other provider, inject.header names the header. Accepted in injected mode only, and refused in local mode. See The credential source. |
mcp.header, mcp.credentialRef | The header to send, and the Secret {name, key} whose value it carries. Required in local mode, and refused in injected mode. |
Next steps
- Integration behavior: who an Integration reaches, the configuration it generates, and what happens when it stops applying.
- LLM gateways for coding agents: connecting a gateway and overriding one.
- MCP servers for coding agents: registering an MCP server.
- Configuration layers: the layers an Integration becomes, and how they merge.
- Injected credentials:
type: httpProxy, adding a key to requests as they leave the workstation. - CredentialProvider: inject a short-lived token that Ringleader gets and renews, in place of a key in a Secret.
- Edge: the edge instance that adds the key on a cloud workstation. It is also the edge VM that adds it on hcs, vz or qemu when a namespace declares an Edge.
- Workstation: the workstation an Integration reaches, and its own
spec.environment. - Roles and grants: ownership, the
accessverb on Secrets, and Grants. rl secret share <name>: giving an owner access to the gateway’s key.- Coding agent setup: setting up the tool itself on a workstation.