Any model available from Anthropic, OpenAI, OpenRouter, or Amazon Bedrock can be used. You can also specify custom API keys: anthropic:claude-sonnet-4-6:CUSTOM_API_KEY
---model: anthropic:claude-haiku-4-5description: "Simple greeting agent that welcomes users"---Greet the user.
Run it:
agentuse run hello.agentuse# Or run with additional instructionsagentuse run hello.agentuse "speak like a pirate"# Run with optionsagentuse run hello.agentuse --verboseagentuse run hello.agentuse --quietagentuse run hello.agentuse --no-ttyagentuse run hello.agentuse --timeout 600# Override the model at runtimeagentuse run hello.agentuse --model openai:gpt-5-miniagentuse run hello.agentuse -m anthropic:claude-sonnet-4-6
---model: anthropic:claude-haiku-4-5description: "Analyzes project structure and identifies key components"mcpServers: filesystem: command: "npx" args: ["-y", "@modelcontextprotocol/server-filesystem", "."]---You are a code analyzer. When asked about a project:1. List the main files and folders2. Identify the project type (Node.js, Python, etc.)3. Summarize what the project does based on README or package.json
AgentUse supports calling other agents as sub-agents:
---model: anthropic:claude-haiku-4-5description: "Orchestrates tasks by delegating to specialized sub-agents"subagents: - path: "./helper-agent.agentuse" name: "helper" maxSteps: 50---You can call the helper agent using the sub-agent tools.
# Run from trusted sources (agentuse.io) without promptsagentuse run https://agentuse.io/hello.agentuse# Other URLs will prompt for confirmationagentuse run https://example.com/path/to/agent.agentuse# Preview the agent content first# Choose 'p' when prompted to preview before execution
Only HTTPS URLs with .agentuse extensions are supported for security. Always review remote agents before execution.