Skip to content
For agents
Browse guides

Network access for agents in apps

Give a tool running in an app HTTPS proxy access to model providers, GitHub or package registries.

Open Markdown

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 doUse
Run a tool that needs a provider login, GitHub or packagesThe app proxy described below
Call a model using the workspace’s provider key and budgetAI models for apps
Send an HTTP request to an API from your backendCall an external API
Give a Linux sandbox internet accessSandbox network settings

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
  }
}
  1. Deploy and wait for the owner's approval in Deployments.
  2. 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

  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.