Skip to content

Add Gemini Managed Agents integration guide - #282

Merged
kcmartin merged 18 commits into
mainfrom
gemini-managed-agents
Nov 11, 2026
Merged

kcmartin merged 18 commits into
mainfrom
gemini-managed-agents

Conversation

@kcmartin

@kcmartin kcmartin commented Nov 10, 2026 •

Copy link
Copy Markdown
Collaborator

New page for Google's Gemini Managed Agents self-hosted environments (Bring Your Own Sandbox), launching 2026-11-11. Based on Google's Fly example in google-gemini/gemini-api-cli: the worker runs as a Sprite service and holds a Task to keep the Sprite awake, and the Machines example uses fly secrets instead of -e.

Tested end to end on a Sprite with a free-tier Gemini API key: the worker claimed the interaction, ran execute_bash and write_to_file, and hello.txt landed in ~/workspace. Kyle tested the Fly Machine setup (worker starts and polls).

@mintlify

mintlify Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated
fly-io 🟢 Ready View Preview Nov 11, 2026, 5:57 PM

💡 Tip: Enable Automations to automatically generate PRs for you.

@kylemclaren

Copy link
Copy Markdown
Collaborator

I tested this page on a Sprite and on a Fly Machine. gemini-api version: 0.4.6.

Results

  • Sprite: all setup steps are OK. The Sprite stayed awake for 7 minutes. When I stopped the service, the task was removed and the Sprite paused.
  • Fly Machine: OK. The worker starts and polls.
  • Interaction: not tested. We did not have an API key with billing. The TODO(test) for connect stays open for this step.

Problems

  1. The environment id is a UUID, not environments/.... The key does not start with ek_. Change the two placeholders.
  2. fly apps create "$FLY_APP" || true fails when there is no terminal: "org slug must be specified". The || true hides the error. Add -o <org>.

Change

  • I pushed one commit (b9f8321). It changes the name to "Gemini Managed Agents" in the page and in the integrations index. The PR title has the old name.

@kcmartin kcmartin changed the title Add a Gemini API Managed Agents integration page Add Gemini Managed Agents integration guide Nov 11, 2026
@kcmartin
kcmartin marked this pull request as ready for review November 11, 2026 16:18
@kcmartin
kcmartin requested a review from a team as a code owner November 11, 2026 16:18
@kylemclaren

Copy link
Copy Markdown
Collaborator

I reviewed the two new commits. The two problems from my last comment are fixed. The new link and the new agent name agree with the AI Studio page.

Three small items:

  1. Prerequisite: the API key must be from a project with billing. Without billing, each model call and each agent call returns 403. Add this to "Before you begin".
  2. Line 163 TODO(test): you can remove it. In my test, the secret was only staged, and the worker on the Machine started and polled.
  3. "See also" links to the GitHub README for self-hosted environments. The introduction links to AI Studio. Use the same link, or keep the README as the flag reference.

@kcmartin

Copy link
Copy Markdown
Collaborator Author

Draft notes, moved here from the hidden comment at the top of the page:

  • Sources: Google's Fly example (google-gemini/gemini-api-cli, docs/self-hosted/providers/fly-machines) and their self-hosted README.
  • Tested 10 Nov: CLI install, key file and worker service (runs as sprite, HOME=/home/sprite, reads the key) on a Sprite; Task hold and release.
  • Kyle tested 11 Nov: Sprite and Machine setup OK, staged secret reaches the Machine.
  • TODO(test): an interaction end to end, which needs a key from a project with billing.
  • TODO(image): header image, ask Annie.

@kcmartin

Copy link
Copy Markdown
Collaborator Author

End-to-end test, 11 Nov, on a Sprites 1 Sprite (mintlify-project) with a free-tier key and the default model:

  • Environment create, key file via sprite exec --no-stdin --env, and the worker service all worked as written. The Task was held throughout.
  • Worker log: claimed the interaction 17:26, execute_bash 17:31, write_to_file 17:35, completed 17:36 UTC. ~/workspace/hello.txt contained Hello, world!.
  • The interaction was sent with a plain curl POST, not gemini-api agent run, so the client-side command on the page wasn't run as written. The non-streaming POST never returned.
  • About 10 minutes for a two-step task, almost all waiting on the model.
  • --no-stdin fails with "unknown flag" on a sprite CLI older than 2026-09-02.

Added instructions for installing the 'gemini-api' and 'sprite' CLIs, including handling PATH issues.
@kcmartin
kcmartin merged commit 75cf9a2 into main Nov 11, 2026
1 check passed
@kcmartin
kcmartin deleted the gemini-managed-agents branch November 11, 2026 17:58
@kcmartin

Copy link
Copy Markdown
Collaborator Author

Follow-up: the second run, sent with gemini-api agent run as on the page, also completed (claimed 17:45, three tool calls, completed 18:44 UTC, hello.txt written). It took about an hour, with gaps of up to 28 minutes waiting on the model, so slow on Google's side today but working.

This branch was successfully deployed

1 active deployment
staging — fb6ac1da Deployed Nov 11, 2026 by mintlify[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants