Secrets and integrations for connecting external services.
Overview
inference.sh provides two ways to give your agents access to external services:
| Method | Description | Best For |
|---|---|---|
| Environment Secrets | Encrypted key-value pairs | API keys you already have |
| Integrations | Managed OAuth/service connections | Google, X.com, etc. |
Security
Both secrets and integrations are:
- Encrypted at rest using AES-256-GCM
- Never logged or exposed in task outputs
- Scoped to your team — other teams cannot access them
- Injected only at runtime — only to apps that require them and only to apps that are verified or user-owned
How they work with apps
Apps can declare what they need:
yaml
1secrets:2 - key: OPENAI_API_KEY3 description: For GPT-4 calls45 - key: STRIPE_SECRET_KEY6 description: For payments7 optional: true89integrations:10 - key: google.sheets11 description: Read sales data1213 - key: x.tweet.write14 description: Post updates15 optional: trueWhen you run the app:
- We check if you have the required secrets and integrations
- If something's missing, you'll be prompted to add it
- Once satisfied, credentials are injected automatically
Managing Secrets
You can manage secrets via the web UI, CLI, or REST API:
→ Secrets API — GET/POST /secrets, create, update, reveal, delete
bash
1# List all secrets2infsh secrets list34# Set a secret5infsh secrets set OPENAI_API_KEY sk-your-key-here67# Delete a secret8infsh secrets delete OPENAI_API_KEYQuick Links
Secrets
Store your own API keys and credentials:
Integrations
Connect to external services with managed OAuth:
Available integrations:
- Google Service Account — Sheets, Docs, Drive
- Google OAuth — Gmail, Calendar, personal Drive
- X.com — Twitter API