# Network access for agents in apps 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](llm.md) | | Send an HTTP request to an API from your backend | [Call an external API](outbound-http.md) | | Give a Linux sandbox internet access | [Sandbox network settings](sandbox-environments.md#choose-internet-access) | ## Request app networking 1. Add the choices to `innie-resources.json`, keeping other required resources: ```json { "version": 1, "resources": ["agent.network"], "agentNetwork": { "providers": ["openai"], "repositories": true, "dependencies": false } } ``` 2. Deploy and wait for the owner's approval in **Deployments**. 3. 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](llm.md). ## Change access as the owner 1. Read `GET /api/apps/APP_ID/agent-network` for current choices and version. 2. Revoke with `POST /api/apps/APP_ID/agent-network/revoke` and `{"expectedVersion":CURRENT_VERSION,"confirm":true}` from your same-origin browser session. A stale version returns 409. 3. 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.