Integrations: AI model providers

Argent with OpenRouter

OpenRouter gives one key to many models. Argent puts your rules on that key: approved models only, sensitive data redacted, spend held against a budget and a signed record of every call, per agent and owner.

OpenRouter logo
01 / INTEGRATIONS: AI MODEL PROVIDERS

What Argent does with OpenRouter

An aggregator key reaches many models. Argent decides which of them each agent may use.

  • Ships with the product: OpenRouter's connection settings are built in, and its key is brokered from your vault.
  • Approved models only: the model in each request is checked against the approved list and access rules, so one shared key does not mean every model.
  • Per agent, per owner: every call is tied to a named agent and its human owner, not to one shared aggregator key.
  • Spend: every call priced from your price book and held against the agent's budget.
  • Sensitive data: redacted before the prompt leaves.
02 / INTEGRATIONS: AI MODEL PROVIDERS

How it connects

One endpoint, one key in your vault, and every agent points at Argent instead of OpenRouter.

  1. Add the endpoint once. On the AI Providers page, one action creates the OpenRouter endpoint with its credential. The OpenRouter API key is written to your vault and Argent keeps only the vault reference.
  2. Register each agent with an owner. Every agent or app gets its own Argent key and a named human owner. Its Connect tab shows copy-paste setup and a VERIFY CONNECTION check.
  3. Point it at Argent. The agent's base URL becomes its route on the Argent gateway, /<tenant>/<endpoint>/, and the Argent key takes the place of the OpenRouter API key.
  4. The gateway swaps keys on the way out. It removes the agent's Argent key, fetches the OpenRouter API key from your vault and attaches it at egress, after checking OpenRouter's certificate.
  5. Rotate in your vault. Every gateway replica drops the cached key, and no agent changes.

Your vault can be HashiCorp Vault or OpenBao, AWS Secrets Manager, CyberArk Conjur or Infisical. The agent never holds the OpenRouter API key, so a leaked agent key is useless anywhere but Argent, and you can switch it off in one place. See Keyless Agents.

03 / INTEGRATIONS: AI MODEL PROVIDERS

What you configure

Everything below is set once in the Argent console and applies to every agent that calls OpenRouter through the gateway.

SettingWhereWhat it does
Approved modelsPolicy > Model and endpoint accessDefault deny: a call is allowed only when the model is on the approved list. The list is platform AND tenant AND agent, and each layer can only narrow the one above.
Access rulesSame pageAllow or deny by provider, route type, model, hosted tools, function tools and output type, for the tenant, a department, a person or one agent. The narrowest rule wins, and a 7-day impact preview shows what a draft would change.
Sensitive dataDLPPer entity type: redact and record, record only, or block the request.
Budgets and capsBudgetsBudgets for the company, org, department, person and agent. Each request is priced and held against the budget before it leaves, and an emergency cap stops a runaway agent now.
ModePer controlOff, watch or enforce. Watch records what would have been refused and changes nothing on the wire.

Start in watch, read what would have been refused, then switch on enforce. See Watch Before You Enforce.

04 / INTEGRATIONS: AI MODEL PROVIDERS

One request, step by step

What happens between your agent and OpenRouter, in order.

  1. The agent sends its request to its Argent route, carrying its own Argent key and nothing from OpenRouter.
  2. Who is calling. Argent identifies the agent from its key and checks it may use this endpoint. The endpoint comes from the route the gateway matched, never from a header the caller sets.
  3. Which model. Argent reads the model from the request body and checks it against the approved list and access rules before anything leaves.
  4. Refuse or allow. A model nobody approved is refused at the gateway with a named reason, such as llm.deny.model.
  5. Sensitive data. The request is scanned, and secrets and personal data are redacted, recorded or blocked under your policy. If the scan cannot run, the request is refused, never passed as clean.
  6. Budget. The request is priced and the amount is held against the agent's budget, so parallel calls cannot overshoot it.
  7. Key. The gateway attaches the provider key from your vault at egress.
  8. Reply and record. Token usage is read from the reply, the cost is settled, and the signed record is written.
05 / INTEGRATIONS: AI MODEL PROVIDERS

What the record shows

Every OpenRouter call leaves one signed record, allowed or refused.

  • One row per call: the agent and the person who owns it, the tenant, the model, the decision and the policy that made it, latency, and the cost, token and cache figures.
  • Tamper-evident: each row is hash-chained to the one before and signed with an ed25519 key held in Vault Transit, so an edited or missing row shows.
  • Real cost: cost comes from the usage block in OpenRouter's own reply, priced from your price book in USD per million tokens.
  • No unpriced spend: an agent under a budget that calls a model with no price is refused, so a new model cannot slip past a cap.

Conversations can be opened and replayed from the record. See Session Replay and One-Click Audit Evidence.

06 / INTEGRATIONS: AI MODEL PROVIDERS

Related capabilities and goals

More AI model providers

Every provider below is governed through Argent.

  • OpenAI
  • Anthropic
  • Google Gemini
  • Azure OpenAI and Foundry
  • Amazon Bedrock
  • Mistral
  • DeepSeek
  • GitHub Copilot
  • Kiro
  • Ollama
  • vLLM
  • NVIDIA NIM
  • LM Studio
  • Hugging Face TGI