Network access for agents in apps
Give a tool running in an app HTTPS proxy access to model providers, GitHub or package registries.
Use this when a CLI or SDK running inside a deployed app needs its own connection to a model provider, GitHub or a package registry. Smolcloud gives the tool an authenticated HTTPS proxy for the destinations the workspace owner approves.
Choose network access
| What you want to do | Use |
|---|---|
| Run a tool that needs a provider login, GitHub or packages | The app proxy described below |
| Call a model using the workspace’s provider key and budget | AI models for apps |
| Send an HTTP request to an API from your backend | Call an external API |
| Give a Linux sandbox internet access | Sandbox network settings |
Request app networking
- Add the choices to
innie-resources.json, keeping other required resources:
{
"version": 1,
"resources": ["agent.network"],
"agentNetwork": {
"providers": ["openai"],
"repositories": true,
"dependencies": false
}
}
- Deploy and wait for the owner's approval in Deployments.
- Configure your tool's HTTPS proxy setting from the injected
AGENT_NETWORK_PROXY. Keep this authenticated URL out of logs and browser code.
The agent still needs its own provider sign-in or key. This proxy controls which hosts it can reach; the provider controls its permissions and charges. For app model calls with a Smolcloud budget, use the AI gateway.
Change access as the owner
- Read
GET /api/apps/APP_ID/agent-networkfor current choices and version. - Revoke with
POST /api/apps/APP_ID/agent-network/revokeand{"expectedVersion":CURRENT_VERSION,"confirm":true}from your same-origin browser session. A stale version returns 409. - Approve a new revision to reconnect. Old source or rollback cannot restore revoked access.
Limits
- Proxy: 32 connections across the service, 8 per app, 10 minutes per stream, 128 MiB in each direction.
- Open connections recheck the rules every 15 seconds; each check times out after 3 seconds.
- Providers:
openai,anthropic,openrouter, each once; repository access is GitHub, dependencies are npm/PyPI. - No SSH, arbitrary domains, private registries or non-TLS traffic through the app proxy.
- Already-sent requests cannot be undone by revocation.