FlyMy.AI Agents
Build and deploy autonomous AI agents on FlyMy.AI. Agents execute complex multi-step tasks in the cloud -- searching the web, processing files, calling APIs -- and deliver results without human intervention.
Two Ways to Use Agents
Build Agents for Yourself
Create agents that automate your workflows. Define a goal, equip the agent with tools, start a run, get results.
from flymyai import AgentClient
client = AgentClient(api_key="fly-***")
# Register tools first - each returns a Tool object with an integer .id
web_search = client.tools.create(mcp_tool="tavily")
browser = client.tools.create(mcp_tool="browser")
agent = client.agents.create(
name="Competitor Monitor",
goal="Track competitor pricing changes and alert me about significant shifts.",
tools=[web_search.id, browser.id]
)
run = client.runs.create(agent_id=agent.id)
result = client.runs.wait(run.id)
print(result.output)
Publish Agents for Others
Once an agent is frozen and the input_schema / output_schema are stable, you can publish it to the FlyMy.AI marketplace. Buyers discover the agent, fill out the auto-generated form, and pay per run.
Agent lifecycle
| Stage | What happens |
|---|---|
| Create | Set name, goal (with {{ placeholders }}), input_schema / output_schema, attach tools. |
| Run / Chat | Agent executes, calls tools, streams events; iterate via follow-up messages. |
| Freeze | Backend distills the chat into a Markdown plan (instruction_md) bounded by input_description / output_description. |
| Run instruction | Re-execute the frozen plan with fresh variables — fast, deterministic, no re-exploration. |
Next Steps
- Quickstart -- build and run your first agent in 5 minutes
- Inputs, Outputs & Variables -- contracts, schemas, freeze scope
- Runs & Freeze -- lifecycle, streaming, instruction re-runs
- Tools & MCP -- add tools and external services