Contents Menu Expand Light mode Dark mode Auto light/dark, in light mode Auto light/dark, in dark mode Skip to content
Flower Agent
Light Logo Dark Logo
Flower Agent

Tutorials

  • Chat in your browser
  • Chat in your terminal
  • Write your first AgentApp
  • Build a collaborative research agent

How-to guides

  • Use agents and federations
  • Connect accounts
  • Create automations
  • Run an AgentApp on SuperGrid
  • Troubleshoot AgentApp runs
  • Run an AgentApp with a local SuperLink
  • Run an AgentApp with a local SuperLink and Ollama

Explanations

  • Understand the AgentApp runtime
  • Use connectors
Back to top
View this page

Run an AgentApp with a local SuperLink¶

Run an AgentApp locally with Flower’s Community Edition runtime. This setup is useful while developing an app: it runs SuperLink and the AgentApp processes on your machine, without a SuperGrid account or Enterprise services.

This guide targets Flower 1.35.0. Run the CLI and SuperLink from the same project environment to avoid protocol mismatches.

If you haven’t created an AgentApp yet, start with Write your first AgentApp.

Warning

This guide disables TLS and is intended for local development only. Do not expose the insecure SuperLink ports to an untrusted network.

Configure a model provider¶

The local runtime needs an Open Responses-compatible model endpoint. Set the provider configuration in the terminal where you’ll start SuperLink.

To use Flower’s default model endpoint, provide a Flower API key:

$ export FLWR_MODEL_API_KEY="<your-api-key>"

To use another Open Responses-compatible endpoint, set its full /responses URL instead:

$ export FLWR_MODEL_API_ENDPOINT="http://127.0.0.1:8000/v1/responses"
$ export FLWR_MODEL_API_KEY="<your-provider-api-key>"

You can omit FLWR_MODEL_API_KEY when the custom endpoint does not require authentication. The model and AgentApp subprocesses inherit these variables from SuperLink.

Account connectors configured in SuperGrid are not available to this local unauthenticated runtime. Built-in connectors depend on the local runtime and provider configuration.

Start SuperLink¶

From your AgentApp project directory, start an insecure local SuperLink:

$ uv run flower-superlink --insecure

SuperLink starts its Control API on 127.0.0.1:9093 and launches the local processes needed to execute the AgentApp and its model requests. You don’t need to start a SuperNode for an AgentApp run.

Leave this terminal open while you run the app.

Add a local connection¶

In another terminal, add a connection for the local Control API to ~/.flwr/config.toml:

[superlink.local-agent]
address = "127.0.0.1:9093"
insecure = true

The connection name is local-agent. It doesn’t require flwr login because the local SuperLink has no account authentication configured.

Run the AgentApp¶

From the AgentApp project directory, submit the app through the new connection:

$ uv run flwr run . local-agent --stream

Flower builds the app, submits it to the local SuperLink, and streams the AgentApp process logs. Override the configured prompt in the same way as a SuperGrid run:

$ uv run flwr run . local-agent \
    --run-config 'agent.input="Explain Flower Agent in one sentence."' \
    --stream

Inspect and stop the run¶

Use the same CLI commands as you would for a remote run:

$ uv run flwr list local-agent
$ uv run flwr list --run-id <run-id> local-agent
$ uv run flwr log <run-id> local-agent --show
$ uv run flwr stop <run-id> local-agent

Press Ctrl+C in the SuperLink terminal when you’re finished.

Troubleshoot the local runtime¶

If a run fails, start with its details and logs:

$ uv run flwr list --run-id <run-id> local-agent
$ uv run flwr log <run-id> local-agent --show

Common problems include:

  • Model API key is not set: export FLWR_MODEL_API_KEY in the SuperLink terminal, then restart SuperLink

  • Invalid model endpoint: FLWR_MODEL_API_ENDPOINT must include the full /responses path

  • Connection refused: confirm that SuperLink is still running and that the configured address is 127.0.0.1:9093

  • Version mismatch: start SuperLink and run the CLI from the same project environment so they use compatible Flower versions

Next
Run an AgentApp with a local SuperLink and Ollama
Previous
Troubleshoot AgentApp runs
Copyright © 2026 Flower Labs GmbH
Made with Sphinx and @pradyunsg's Furo
On this page
  • Run an AgentApp with a local SuperLink
    • Configure a model provider
    • Start SuperLink
    • Add a local connection
    • Run the AgentApp
    • Inspect and stop the run
    • Troubleshoot the local runtime