v2.6.8
Antigravity, two shapes
You can now give your agents a full code-running, web-browsing, file-editing sandbox without building or operating any of it.
Agno ships first-party support for Google's Antigravity agents in two shapes, so you get that power on your existing stack. Which one you pick comes down to a single question: Do you want Antigravity to be the agent, or to work for one?
Shape 1: run it as a full agent, on the surface you already operate.
AntigravityAgent serves straight through AgentOS, so a Google-managed sandbox agent gets native sessions, streaming, and UI without a separate stack to stand up or maintain.
from agno.agents.antigravity import AntigravityAgent
from agno.db.sqlite import SqliteDb
from agno.os import AgentOS
agent = AntigravityAgent(name="Antigravity")
agent_os = AgentOS(
agents=[agent],
db=SqliteDb(db_file="tmp/agentos.db"),
)
app = agent_os.get_app()
if __name__ == "__main__":
agent_os.serve(app="antigravity_agent:app", reload=True)
Add a db and you get persistent workspaces for free. Each interaction provisions a sandbox and returns an environment ID, and AgentOS stores it so later turns in the same session land on the same sandbox. Files, installed packages, and state carry over, instead of every turn starting from scratch.
Shape 2: keep your agent, give it sandbox superpowers.
AntigravityTools lets any existing Agno agent delegate sandboxed work to Antigravity without being rebuilt as one. Your agent keeps its own model and offloads only the part that needs a sandbox.
from agno.agent import Agent
from agno.models.google import Gemini
from agno.tools.antigravity import AntigravityTools
agent = Agent(
name="Research Assistant",
model=Gemini(id="gemini-2.5-pro"),
tools=[AntigravityTools()],
markdown=True,
instructions=[
"When a task benefits from a sandboxed Linux environment with web search "
"and code execution, delegate it via run_antigravity_task.",
"Otherwise answer directly.",
],
)
agent.print_response(
"Use the sandbox to find the latest stable Python release and summarize what changed."
)
Now it can delegate code, search, and file work to a managed sandbox.
Same underlying API, two ways to get the benefit: one for when Antigravity is the worker, one for when it is the helper.
Docs for the agent: https://docs.agno.com/agent-os/multi-framework/antigravity
Docs for the toolkit: https://docs.agno.com/tools/toolkits/others/antigravity
