Skip to content

Anvil SDK

Generate tools on the fly. Self-heal when they break. Works with any AI framework.

Traditional AI agents suffer from Tool Rot - hardcoded integrations that break when APIs change. Anvil solves this by generating tool implementations at runtime using LLMs.

JIT Code Generation

Define what you want, not how. Anvil generates working Python code from natural language intents.

Self-Healing

When tools fail, Anvil automatically regenerates them with the error context. No manual intervention needed.

Framework Agnostic

Works with LangChain, CrewAI, AutoGen, OpenAI Agents SDK, or standalone. One tool, every framework.

Glass-Box Transparency

All generated code is visible, editable, and version-controlled. No black boxes.

from anvil import Anvil
anvil = Anvil()
# Define what you want, not how
search_tool = anvil.use_tool(
name="search_notion",
intent="Search a Notion workspace for pages matching a query",
docs_url="https://developers.notion.com/reference/post-search"
)
# Execute - code is generated automatically
result = search_tool.run(query="Project Roadmap")
# Use with any framework
lc_tool = search_tool.to_langchain()
crew_tool = search_tool.to_crewai()
Terminal window
pip install anvil-agent

With Claude support (recommended):

Terminal window
pip install "anvil-agent[anthropic]"