Skip to main content

Documentation Index

Fetch the complete documentation index at: https://datagen.dev/llms.txt

Use this file to discover all available pages before exploring further.

Installation

curl -fsSL https://cli.datagen.dev/install.sh | sh
Windows:
irm https://cli.datagen.dev/install.ps1 | iex
Verify: datagen --help

datagen login

Authenticate with DataGen via browser OAuth or API key.
datagen login
datagen login --api-key "your-key"
FlagShortTypeDefaultDescription
--api-keystringAPI key (skips browser login)
--shellstringShell type: bash, zsh, fish, powershell
--profilestringShell profile file to update
--envstringDATAGEN_API_KEYEnvironment variable name
--yes-yboolfalseSkip confirmation prompts
--printboolfalsePrint export command only

datagen mcp

Configure the DataGen MCP server in local tools (Codex, Claude, Gemini).
datagen mcp
datagen mcp --clients claude,codex --dry-run
FlagShortTypeDefaultDescription
--clientsstringcodex,claude,geminiComma-separated clients to configure
--api-keystringAPI key (uses env/profile lookup if empty)
--envstringDATAGEN_API_KEYEnvironment variable to look up
--yes-yboolfalseSkip confirmation prompts
--dry-runboolfalseShow changes without writing
--codex-staticboolfalseUse static header in Codex config

datagen github

Manage GitHub connection and repository access.

github connect

Install the DataGen GitHub App via browser.
datagen github connect
FlagTypeDefaultDescription
--timeoutint300Seconds to wait for installation

github repos

List all repositories accessible via your GitHub App.
datagen github repos

github connected

List repositories already connected to DataGen.
datagen github connected

github connect-repo

Connect a specific repository.
datagen github connect-repo owner/repo
Argument: <owner/repo> (required)

github sync

Re-sync agents from a connected repository.
datagen github sync <repo-id>
Argument: <repo-id> (required)

github status

Check GitHub App installation status.
datagen github status

datagen agents

Manage agents, skills, and commands discovered from GitHub repositories.

agents list

List all discovered agents.
datagen agents list
datagen agents list --type agent --deployed
FlagTypeDefaultDescription
--repostringFilter by repository (owner/repo)
--typestringFilter: agent, skill, or command
--deployedboolfalseShow only deployed agents

agents show

Show detailed info about an agent.
datagen agents show <agent-id>

agents deploy

Deploy an agent to DataGen.
datagen agents deploy <agent-id>

agents undeploy

Remove an agent deployment and its webhook.
datagen agents undeploy <agent-id>

agents run

Trigger an agent execution.
datagen agents run <agent-id>
datagen agents run <agent-id> --payload '{"task": "review PRs"}'
FlagTypeDefaultDescription
--payloadstring"{}"JSON payload for the run

agents logs

View execution history.
datagen agents logs <agent-id>
datagen agents logs <agent-id> --limit 20
FlagTypeDefaultDescription
--limitint10Max executions to show

agents output

Show execution output.
datagen agents output <agent-id>
datagen agents output <agent-id> --execution <exec-id>
FlagTypeDefaultDescription
--executionstringSpecific execution ID
--sessionstringSDK session ID to look up
--jsonboolfalseOutput raw JSON

agents config

View or update agent configuration. With no flags, displays current config.
datagen agents config <agent-id>
datagen agents config <agent-id> --set-prompt "Review all open PRs"
datagen agents config <agent-id> --secrets ANTHROPIC_API_KEY,GITHUB_TOKEN
FlagTypeDefaultDescription
--set-promptstringSet entry prompt
--clear-promptboolfalseClear entry prompt
--secretsstringComma-separated secret names
--pr-modestringcreate_pr, auto_merge, or skip
--add-recipientstringAdd recipient as email[:role]
--remove-recipientstringRemove recipient by ID
--notify-successstringtrue, false, or default
--notify-failurestringtrue, false, or default
--notify-replystringtrue, false, or default

agents schedule

Manage cron schedules. With no flags, lists all schedules.
datagen agents schedule <agent-id>
datagen agents schedule <agent-id> --cron "0 9 * * *" --timezone "America/New_York"
datagen agents schedule <agent-id> --pause <schedule-id>
FlagTypeDefaultDescription
--cronstringCron expression (e.g., "0 9 * * *")
--timezonestringUTCTimezone (e.g., America/New_York)
--namestringOptional schedule name
--pausestringPause a schedule by ID
--resumestringResume a schedule by ID
--deletestringDelete a schedule by ID

datagen skills / datagen commands

Aliases for datagen agents with type filtering.
datagen skills list        # Same as: datagen agents list --type skill
datagen commands list      # Same as: datagen agents list --type command
All agents subcommands are available (show, deploy, undeploy, run, logs, output, config, schedule).

datagen tools

Manage custom Python tools deployed as API endpoints.

tools list

List all custom tools.
datagen tools list

tools show

Show custom tool details including code and schemas.
datagen tools show <tool-uuid>

tools deploy

Deploy a new custom tool.
datagen tools deploy my_tool --file ./tool.py --description "My tool"
datagen tools deploy my_tool --code "result = 'hello'" --outputs result
Argument: <name> (required)
FlagTypeDescription
--codestringInline Python code
--filestringPath to Python source file
--schemastringInline JSON input schema
--schema-filestringPath to JSON schema file
--defaultsstringInline JSON default input values
--defaults-filestringPath to JSON defaults file
--descriptionstringTool description
--outputsstringComma-separated output variable names
--toolsstringComma-separated MCP tool names
--importsstringComma-separated Python packages
--no-auto-importsboolDisable import inference from source
--mcp-serversstringComma-separated MCP server names
--secretsstringComma-separated secret names
--publicboolDeploy as public tool

tools update

Update an existing custom tool.
datagen tools update <tool-uuid> --file ./updated_tool.py
Same flags as tools deploy (only provided fields are updated).

tools run

Run a custom tool with input.
datagen tools run <tool-uuid> --input '{"domain": "acme.com"}'
datagen tools run <tool-uuid> --input-file ./input.json
FlagTypeDescription
--inputstringInline JSON input variables
--input-filestringPath to JSON input file

datagen secrets

Manage API keys and secrets for agents and tools.

secrets list

List all stored secrets (values are masked).
datagen secrets list

secrets set

Create or update a secret.
datagen secrets set OPENAI_API_KEY=sk-abc123     # Explicit value
datagen secrets set OPENAI_API_KEY                # Read from environment
Argument: <KEY=VALUE> or <KEY> (required)

Environment Variables

VariableDefaultDescription
DATAGEN_API_KEYAPI authentication key
DATAGEN_API_BASE_URLhttps://api.datagen.devCustom API server
DATAGEN_WEB_BASE_URLhttps://datagen.devCustom web app URL
DATAGEN_VERSIONPin CLI release version during install
DATAGEN_INSTALL_DIRCustom install location