Integration behavior
An Integration connects workstations to a shared external service, so every workstation it reaches is set up the same way.
An Integration connects workstations to a shared external service, so every workstation it reaches is set up the same way. 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. With one, the key stays in one Secret instead of being pasted into workstations.
An Integration has type: llm or type: httpProxy, and either type can also register an MCP
server. This page covers what is true of every type. It says which workstations an Integration reaches
and what Ringleader generates from it. It also says what happens when the Integration stops
applying and when its endpoint file cannot be written. To point your coding agents at a
gateway, start with LLM gateways for coding agents.
To register an MCP server, start with
MCP servers for coding agents.
Integration reach
This section applies to every type of Integration. Ringleader turns each Integration into a
layer, so an Integration reaches workstations by the rules in
Workstations a layer reaches.
The rules differ only when the Integration has no matchLabels:
- A member’s Integration with no
matchLabelsand nomatchOwnersis a personal Integration. It reaches every workstation that member owns, including the ones they create later. A personal Integration also changes how a failure to write its endpoint file is reported, as Endpoint file failures explains. - An administrator’s Integration with no
matchLabelsreaches nothing, as an empty WorkstationConfig selector does. WithownerScope: trueadded, it is personal too, and it reaches every workstation that administrator owns.
Give an Integration labels unless you mean it for every workstation you own. In the local
namespace, a personal Integration reaches the local runtime, as
Layers and the local runtime
explains. For a type: httpProxy Integration the reach matters more, because it changes how
each workstation it reaches connects to the network.
Choose how wide a selector reaches
says how to choose.
Generated configuration
This section applies to every type of Integration. Ringleader turns each Integration into an
ordinary WorkstationConfig named
integration-<name>. For an llm Integration, that configuration carries the endpoint’s
environment, the tool settings and the
endpoint file. From there it
works like any other layer: its selector picks the workstations, it merges with their other
layers, and its ${secret:…} references are filled in on each workstation.
The generated configuration also carries a workstationconfig.ringleader.dev/generated-from
annotation naming the <namespace>/<name> of its Integration. So a configuration you find in
rl workstationconfig get can always be traced back to the Integration that produced it.
Ringleader owns the generated configuration. An edit to it is overwritten, and deleting the Integration deletes it. Change the Integration instead.
Ringleader does not overwrite a configuration it did not create. If a WorkstationConfig named
integration-<name> already exists, the Integration’s status message says so. Rename either
object. If the Integration’s name is too long to build the configuration name from, the
message says that instead. Shorten the name.
End of an Integration
This section applies to every type of Integration. An Integration stops applying to a
workstation when it is deleted, when its selector changes, or when the workstation’s labels
change. The next configuration pass then removes everything the Integration wrote: its
environment variables, its endpoint file, and the tool settings it produced. A
~/.codex/config.toml that Ringleader wrote in full is deleted. From a file that Codex also
writes, only Ringleader’s keys are removed. The provider it added to pi’s models.json is removed, and the other providers in the file
stay.
A configuration pass that could not assemble every layer removes nothing, whatever the reason. So a leftover file on a workstation that otherwise reports healthy means the last pass was incomplete. The next complete pass removes it.
Two more things to plan for:
- A shell that was already open keeps the environment it started with. Check in a new shell.
- The endpoint file shows the configuration at the time it was written. It does not say whether the gateway is up or the key still works. To find out, call the endpoint.
Endpoint file failures
This section applies to every Integration that writes an endpoint file, whatever its type. What happens when Ringleader cannot write the file depends on whether the Integration is personal.
If a personal Integration’s endpoint file cannot be written, the workstation still reports
Configured. The failure shows in the Optional configuration section of
rl workstation describe, and rl troubleshoot shows the failing step and its output.
For every other Integration, writing the endpoint file is an ordinary configuration step. That
includes the example in
Connect a coding agent to an LLM gateway,
an administrator’s Integration, and a member’s Integration with matchLabels, with or without
ownerScope. If the file cannot be written, that workstation reports Configured: False
until the cause is fixed. Other workstations are not affected, because each one applies its
own configuration.
Next steps
- LLM gateways for coding agents points your coding agents at an LLM gateway.
- MCP servers for coding agents registers an MCP server with your coding agents.
- Injected credentials adds a key to
requests for hosts you name, with
type: httpProxy. - Integration lists the fields, the vendors and the endpoint files.