martin434
07/30/2026, 3:56 PMSaif Rahman
07/30/2026, 4:07 PMmartin434
07/30/2026, 4:26 PMSaif Rahman
07/30/2026, 4:39 PMSaif Rahman
07/30/2026, 4:39 PMSaif Rahman
07/30/2026, 5:17 PMmartin434
07/30/2026, 5:41 PMmartin434
07/30/2026, 5:44 PMmartin434
07/30/2026, 5:50 PMSaif Rahman
07/30/2026, 5:55 PMmartin434
07/30/2026, 5:56 PMmartin434
07/30/2026, 5:58 PMmartin434
07/30/2026, 5:59 PMSaif Rahman
07/30/2026, 6:03 PMSaif Rahman
07/30/2026, 6:04 PMmartin434
07/30/2026, 6:04 PMSaif Rahman
07/30/2026, 6:05 PMmartin434
07/30/2026, 6:05 PMSaif Rahman
07/30/2026, 6:06 PMmartin434
07/30/2026, 6:07 PMSaif Rahman
07/30/2026, 6:08 PM/hermes/default, /hermes/coder, etc.
2. Create secrets and proxied services there
3. Run this command on the proxy machine: infisical secrets agent-proxy start
4. Start your agent: infisical secrets agent-proxy connect -- coder gateway startmartin434
07/30/2026, 6:09 PMSaif Rahman
07/30/2026, 6:09 PMSaif Rahman
07/30/2026, 6:09 PMmartin434
07/30/2026, 6:10 PMSaif Rahman
07/30/2026, 6:10 PMSaif Rahman
07/30/2026, 6:10 PMmartin434
07/30/2026, 6:10 PMmartin434
07/30/2026, 7:15 PMmartin434
07/30/2026, 7:21 PMSaif Rahman
07/30/2026, 7:35 PMmartin434
07/30/2026, 7:46 PMmartin434
08/03/2026, 2:54 PMSaif Rahman
08/03/2026, 6:34 PMOPENROUTER_API_KEY with your real sk-or-v1-… value.
Way 1: Bearer (what I’d recommend)
Head to Services, click Add service, and fill in:
• Name: openrouter
• Host pattern: <http://openrouter.ai|openrouter.ai>
• Authentication: Bearer
• Token credential key: OPENROUTER_API_KEY
Your code doesn’t need the real key at all. If an SDK refuses to start without one, just put any dummy string in there, since we replace the whole Authorization header anyway.
Way 2: Substitution (only if a client validates the key format)
Same as above, but set Authentication to Passthrough, then expand URL Substitutions and click Add substitution:
• Replace: sk-or-v1-000000000000000000000000 (deselect path and query, then select header)
• With value of: OPENROUTER_API_KEY
Then use that fake key as your env var, and we’ll swap it for the real one on the way out.
Both approaches send the exact same real header upstream, so it comes down to preference. Way 1 is a little less to maintain.martin434
08/03/2026, 7:56 PMSaif Rahman
08/04/2026, 12:31 AMmartin434
08/04/2026, 11:16 AM