Deploying an agent turns it into a cloud service that runs on webhooks, schedules, or manual triggers. Once deployed, your agent can create PRs, send notifications, and process data automatically.Documentation Index
Fetch the complete documentation index at: https://datagen.dev/llms.txt
Use this file to discover all available pages before exploring further.
Push to GitHub
Your agent needs to be in a GitHub repository before deploying.Deploy from Claude Code
Run the deploy command inside Claude Code:- Scan your agent’s dependencies (scripts, tools, secrets)
- Connect your GitHub repo via the DataGen GitHub App
- Push required secrets to DataGen
- Create a webhook endpoint
- Optionally set up cron schedules
Deploy from the Web UI
Step 1: Connect Your GitHub Repository
Step 2: Deploy an Agent
DataGen automatically discovers agents, skills, and commands from your repository’s.claude/ directory.
Configure Secrets
Select which secrets your agent needs. You need either an Anthropic API key or a Claude Code subscription token.Option A: Anthropic API Key — Add 
ANTHROPIC_API_KEY in DataGen Secrets.Option B: Claude Code Subscription (Recommended) — Run claude setup-token in your terminal, then add the token as CLAUDE_CODE_OAUTH_TOKEN in DataGen Secrets.
Configure Options
- Create Pull Request — Enable if you want the agent to submit changes as PRs
- Entry Prompt — Set a system-level instruction for every execution
After Deployment
Once deployed, your agent:- Has a unique webhook URL for triggering via HTTP POST
- Appears in the Agents dashboard with run statistics
- Can be configured with schedules, channels, and additional secrets
Troubleshooting
Agent not appearing after connecting repo
Agent not appearing after connecting repo
Make sure your agent file is at
.claude/agents/your-agent.md and has been pushed to the main branch.Agent fails with API key error
Agent fails with API key error
Ensure you’ve configured the required secrets (Anthropic API key or Claude Code OAuth token) and selected them during deployment.
GitHub App not connecting
GitHub App not connecting
Verify you have admin access to the repository. Try disconnecting and reconnecting the repo.
Next Step
Monitor Agent Runs
View execution logs, tool calls, and agent output


