agentgateway
Gateway for AI agents, LLM providers, and MCP services.
Examples
Simple
nix
{
nps.stacks.agentgateway.enable = true;
}Declarative Settings
nix
{config, ...}: {
nps.stacks.agentgateway = {
enable = true;
settings = {
config = {
database.url = "sqlite:///config/data.db";
session = {
key = "$SESSION_KEY";
};
};
gateways.default.port = 4000;
ui.gateways = "default";
llm.gateways = "default";
mcp.gateways = "default";
};
extraEnv.SESSION_KEY.fromFile = config.sops.secrets."agentgateway/session_key".path;
};
}Stack Options
nps.stacks.agentgateway.enable
Whether to enable agentgateway.
nps.stacks.agentgateway.extraEnv
Extra environment variables to set for the container. Variables can be sourced from a file (e.g. for secrets).
See https://agentgateway.dev/docs/standalone/latest/documentation/configuration/static-configuration/ and https://agentgateway.dev/docs/standalone/latest/documentation/llm/api-keys/.
Type
plaintext
attribute set of (null or boolean or signed integer or string or absolute path or (submodule))
Default
nix
{ }
Declaration
nps.stacks.agentgateway.settings
Settings for Agentgateway, converted to YAML and mounted read-only. When null, configuration is managed through the UI and persisted in /config. Do not put secrets here, as the generated file is stored in the Nix store.
See https://agentgateway.dev/docs/standalone/latest/reference/configuration/schema/.
Container Aliases
nps.stacks.agentgateway.containers.agentgateway
Alias of {option}services.podman.containers.agentgateway.
