Ollama models become available to AI agents in Fly.io Sprites

News Ollama Blog · Source account, not independently verified by us.

Ollama Cloud can now be used through a connector in Fly.io Sprites. These Linux sandboxes can route AI agents’ requests to Ollama’s cloud models without placing the API key inside a Sprite. This matters to developers who want to run agents in isolated environments while still using Ollama models.

Fly.io says it encrypts the stored Ollama key and does not return it through its API. A gateway checks which Sprite made a request and adds the key when forwarding it. The Sprite itself receives only a gateway URL and a connection ID. Access is blocked for all Sprites by default; developers can allow it by label, name prefix, or for every Sprite. Requests work only from inside a Sprite.

The integration supports Claude Code, Codex, and Gemini CLI, among other coding agents. It also works with OpenAI-compatible SDKs and Ollama’s native API routes. One example in the announcement combines models for fuzzing: a smaller model generates malformed inputs, a Sprite runs them against a program, and a larger model examines crashes.

Getting started requires an Ollama API key and at least one Sprite. The original post gives setup instructions, example requests, and more detail on the fuzzing workflow: Ollama: Run AI agents safely with Ollama and Fly.io

🇬🇧 https://ollama.com/blog/fly-io-sprites

Leave a Comment

The weekly brief: selected developments, projects and videos