---
type: "post"
id: "ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875"
slug: "ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875"
title: "AnkaCloud adds GMI Cloud as a sandbox provider"
description: "AnkaCloud merged a GMI Cloud sandbox provider into main on Nov."
retrieval_nugget: "AnkaCloud merged a GMI Cloud sandbox provider into main on Nov."
published_at: "2026-12-02"
updated_at: "2026-12-02"
record_date: "2026-12-02"
date_kind: "published_at"
topics: ["sandbox"]
entities: ["AnkaCloud","GMI Cloud"]
related_patterns: []
novelty_label: "new_fact"
what_changed: null
prior_refs: []
source_url: "https://github.com/tao12345666333/ankacloud/pull/6"
source_urls: ["https://github.com/tao12345666333/ankacloud/pull/6"]
production: {"schema":"newruntime-production-v1","desk":"newsroom","first_seen_at":"2026-12-02T18:25:22.860Z","independent_sources":1,"notes_synthesized":null,"writer_model":"gpt-6-luna","critic":null,"checks":["primary_source_verified","source_fresh","one_story","copy_contract"],"novelty":null,"editorial_value":"medium","human_review":"selective"}
citations: [{"claim":"The template’s product determines machine size, which the form displays as read-only, and GMISANDBOXAPIKEY can supply the key as an environment-variable fallback.","quotes":["A template is required and is asked for next to the API key; the template picker and the size hint now cover both kinds."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=A%20template%20is%20required%20and%20is%20asked%20for%20next%20to%20the%20API%20key%3B%20the%20template%20picker%20and%20the%20size%20hint%20now%20cover%20both%20kinds.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"","quotes":["Its machine size comes from the template's product, so the provider declares no sizing capability and the form shows the size read-only (like E2B)."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Its%20machine%20size%20comes%20from%20the%20template%27s%20product%2C%20so%20the%20provider%20declares%20no%20sizing%20capability%20and%20the%20form%20shows%20the%20size%20read%2Donly%20%28like%20E2B%29.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"Because commands.run(wait=True) returns after about 25 seconds even while execution continues, the adapter starts commands with wait=False and polls at growing intervals; timed-out executions receive exit code 124.","quotes":["The agent layout (the repo checkout, ~/.config/ankaloop/config.toml, the git identity) assumes /home/user, so every command pins HOME and XDG_CONFIG_HOME to it and create makes that directory."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=The%20agent%20layout%20%28the%20repo%20checkout%2C%20%7E%2F.config%2Fankaloop%2Fconfig.toml%2C%20the%20git%20identity%29%20assumes%20%2Fhome%2Fuser%2C%20so%20every%20command%20pins%20HOME%20and%20XDG_CONFIG_HOME%20to%20it%20and%20create%20makes%20that%20directory.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"It also reconnects once if an extended sandbox’s data-plane token goes stale and deletes a sandbox when creation fails after the sandbox exists.","quotes":["commands.run(wait=True) returns after ~25 s with the execution still running, so a clone or .agents/setup would look like it failed.","Commands are started with wait=False … instead of failing the command."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=commands.run%28wait%3DTrue%29%20returns%20after%20%7E25%20s%20with%20the%20execution%20still%20running%2C%20so%20a%20clone%20or%20.agents%2Fsetup%20would%20look%20like%20it%20failed.&text=Commands%20are%20started%20with%20wait%3DFalse,instead%20of%20failing%20the%20command.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"","quotes":["Commands are started with wait=False … instead of failing the command.","A create that fails after the sandbox exists deletes it (the caller never gets an id to kill), and a sandbox without a template fails with a message that names the setting."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Commands%20are%20started%20with%20wait%3DFalse,instead%20of%20failing%20the%20command.&text=A%20create%20that%20fails%20after%20the%20sandbox%20exists%20deletes%20it%20%28the%20caller%20never%20gets%20an%20id%20to%20kill%29%2C%20and%20a%20sandbox%20without%20a%20template%20fails%20with%20a%20message%20that%20names%20the%20setting.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"The author reports 442 tests passed and one failed, noting that the failure also occurred on main in that environment; unit tests used a fake SDK client, and the author says all test sandboxes were deleted after verification.","quotes":["Verified end to end on a real control plane (real GMI sandbox, real model): create, config push, anka serve bootstrap, a full agent turn that wrote and read a file, an idle pause by the reconciler, a resume on the next message, the orphan sweep, and kill."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Verified%20end%20to%20end%20on%20a%20real%20control%20plane%20%28real%20GMI%20sandbox%2C%20real%20model%29%3A%20create%2C%20config%20push%2C%20anka%20serve%20bootstrap%2C%20a%20full%20agent%20turn%20that%20wrote%20and%20read%20a%20file%2C%20an%20idle%20pause%20by%20the%20reconciler%2C%20a%20resume%20on%20the%20next%20message%2C%20the%20orphan%20sweep%2C%20and%20kill.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"","quotes":["Tests: unit tests drive the adapter through a fake SDK client (commands, pause/resume, timeouts, the orphan sweep, a failed create cleaning up its sandbox, the stale-token retry)."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Tests%3A%20unit%20tests%20drive%20the%20adapter%20through%20a%20fake%20SDK%20client%20%28commands%2C%20pause%2Fresume%2C%20timeouts%2C%20the%20orphan%20sweep%2C%20a%20failed%20create%20cleaning%20up%20its%20sandbox%2C%20the%20stale%2Dtoken%20retry%29.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"},{"claim":"","quotes":["Settings → Sandbox → New provider → \"GMI Cloud Sandbox\" { \"api_key\" : \"...\"","A template is required and is asked for next to the API key; the template picker and the size hint now cover both kinds."],"cite_url":"https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Settings%20%E2%86%92%20Sandbox%20%E2%86%92%20New%20provider%20%E2%86%92%20%22GMI%20Cloud%20Sandbox%22%20%7B%20%22api_key%22%20%3A%20%22...%22&text=A%20template%20is%20required%20and%20is%20asked%20for%20next%20to%20the%20API%20key%3B%20the%20template%20picker%20and%20the%20size%20hint%20now%20cover%20both%20kinds.","source_url":"https://github.com/tao12345666333/ankacloud/pull/6","publisher":"github.com"}]
schema_version: "newruntime-agent-readable-v0.2"
stable_id: "post:ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875"
status: "published"
visuals: []
editor: {"role":"editor","name":"Andrey Reshetnikov","profile":"https://newruntime.com/owner-profile.md","profile_json":"https://newruntime.com/owner-profile.json","same_as":["https://www.linkedin.com/in/reshetnikov1/","https://t.me/lapetuse"]}
routes: {"html":"https://newruntime.com/posts/ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875/","markdown":"https://newruntime.com/posts/ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875.md","json":"https://newruntime.com/posts/ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875.json"}
markdown_url: "https://newruntime.com/posts/ankacloud-adds-gmi-cloud-as-a-sandbox-provider-a1f875.md"
---

# AnkaCloud adds GMI Cloud as a sandbox provider

## Retrieval answer

AnkaCloud merged a GMI Cloud sandbox provider into main on Nov.

## Summary

AnkaCloud merged a GMI Cloud sandbox provider into main on Nov. 30, 2026, giving a thread’s `anka serve` another place to run: a GMI sandbox. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6))

## What happened

Setup requires an API key and template ID; GMI sandboxes cannot be launched from a base image. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=A%20template%20is%20required%20and%20is%20asked%20for%20next%20to%20the%20API%20key%3B%20the%20template%20picker%20and%20the%20size%20hint%20now%20cover%20both%20kinds.)) The template’s product determines machine size, which the form displays as read-only, and `GMI_SANDBOX_API_KEY` can supply the key as an environment-variable fallback. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Its%20machine%20size%20comes%20from%20the%20template%27s%20product%2C%20so%20the%20provider%20declares%20no%20sizing%20capability%20and%20the%20form%20shows%20the%20size%20read%2Donly%20%28like%20E2B%29.))

The adapter pins `HOME` and `XDG_CONFIG_HOME` to `/home/user` so `ankaloop` reads the intended configuration. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=The%20agent%20layout%20%28the%20repo%20checkout%2C%20%7E%2F.config%2Fankaloop%2Fconfig.toml%2C%20the%20git%20identity%29%20assumes%20%2Fhome%2Fuser%2C%20so%20every%20command%20pins%20HOME%20and%20XDG_CONFIG_HOME%20to%20it%20and%20create%20makes%20that%20directory.)) Because `commands.run(wait=True)` returns after about 25 seconds even while execution continues, the adapter starts commands with `wait=False` and polls at growing intervals; timed-out executions receive exit code 124. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=commands.run%28wait%3DTrue%29%20returns%20after%20%7E25%20s%20with%20the%20execution%20still%20running%2C%20so%20a%20clone%20or%20.agents%2Fsetup%20would%20look%20like%20it%20failed.&text=Commands%20are%20started%20with%20wait%3DFalse,instead%20of%20failing%20the%20command.)) It also reconnects once if an extended sandbox’s data-plane token goes stale and deletes a sandbox when creation fails after the sandbox exists. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Commands%20are%20started%20with%20wait%3DFalse,instead%20of%20failing%20the%20command.&text=A%20create%20that%20fails%20after%20the%20sandbox%20exists%20deletes%20it%20%28the%20caller%20never%20gets%20an%20id%20to%20kill%29%2C%20and%20a%20sandbox%20without%20a%20template%20fails%20with%20a%20message%20that%20names%20the%20setting.))

## What the archive adds

AnkaCloud was previously described as supporting E2B by default, plus Tenki, Runta and self-hosted E2B, within a self-hosted control plane for coding agents in disposable cloud sandboxes. ([earlier report](https://github.com/tao12345666333/ankacloud))

## Why it matters

Treat template selection as the sizing decision: there is no separate editable size field. In the reported test, pausing and resuming retained both the disk and running processes, so the sandbox could preserve more than files across an idle interval.

## Limits and uncertainty

The pull request author says the integration was tested against the live API with `gmi-sandbox-sdk` 1.3.0 in `us-central-iowa16`, including an end-to-end test where an agent wrote and read a file in a real sandbox using a real model. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Verified%20end%20to%20end%20on%20a%20real%20control%20plane%20%28real%20GMI%20sandbox%2C%20real%20model%29%3A%20create%2C%20config%20push%2C%20anka%20serve%20bootstrap%2C%20a%20full%20agent%20turn%20that%20wrote%20and%20read%20a%20file%2C%20an%20idle%20pause%20by%20the%20reconciler%2C%20a%20resume%20on%20the%20next%20message%2C%20the%20orphan%20sweep%2C%20and%20kill.)) The author reports 442 tests passed and one failed, noting that the failure also occurred on main in that environment; unit tests used a fake SDK client, and the author says all test sandboxes were deleted after verification. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Tests%3A%20unit%20tests%20drive%20the%20adapter%20through%20a%20fake%20SDK%20client%20%28commands%2C%20pause%2Fresume%2C%20timeouts%2C%20the%20orphan%20sweep%2C%20a%20failed%20create%20cleaning%20up%20its%20sandbox%2C%20the%20stale%2Dtoken%20retry%29.))

## Skill to build now

In AnkaCloud, go to **Settings → Sandbox → New provider → “GMI Cloud Sandbox”** and enter an API key and template ID. ([github.com](https://github.com/tao12345666333/ankacloud/pull/6#:~:text=Settings%20%E2%86%92%20Sandbox%20%E2%86%92%20New%20provider%20%E2%86%92%20%22GMI%20Cloud%20Sandbox%22%20%7B%20%22api_key%22%20%3A%20%22...%22&text=A%20template%20is%20required%20and%20is%20asked%20for%20next%20to%20the%20API%20key%3B%20the%20template%20picker%20and%20the%20size%20hint%20now%20cover%20both%20kinds.))

## Reader takeaway

The GMI provider is configurable with an API key and template ID, and the template’s product fixes the machine size. The pull request author reports a live-API end-to-end test, including pause/resume with disk and processes retained, but the test suite still had one failure that also occurred on main in that environment.

Editor: [Andrey Reshetnikov](https://newruntime.com/owner-profile.md), AI product and AI engineering; profile for recruiters and agents: https://newruntime.com/owner-profile.json

## Continue in the graph

Next records for an agent, linked to their Markdown twins. Replace `.md` with `.json` for structured fields, including `next_reads`.

- topic hub: [Sandbox](https://newruntime.com/topics/sandbox.md): Explore the sandbox topic hub.
- collection: [Field Notes](https://newruntime.com/posts.json): Open the latest editorial analysis.
- collection: [Sources](https://newruntime.com/sources/): See the original sources this archive cites.
- whole graph: [discovery graph](https://newruntime.com/discovery-graph.json) (typed nodes and edges) and [site index](https://newruntime.com/site-index.md)
