agent.yaml: run or export it anywhere.
Framework Adapters
| Adapter | Name | Mode | Requires | Features |
|---|---|---|---|---|
claude | Claude Code | Interactive / one-shot | Claude Code CLI | Append system prompt, sub-agents, hook mapping, permission modes |
openai | OpenAI Agents SDK | One-shot | OPENAI_API_KEY, Python 3 | Auto-generated Python code, tool function stubs, type mappings |
crewai | CrewAI | One-shot | CrewAI CLI | YAML config export, role/goal extraction, sub-agent mapping |
openclaw | OpenClaw | One-shot | ANTHROPIC_API_KEY, OpenClaw CLI | Auto-provision auth, workspace generation, HITL → thinking=high |
nanobot | Nanobot | Interactive / one-shot | ANTHROPIC_API_KEY, Nanobot CLI | Auto-provision auth, config + system prompt, environment variables |
lyzr | Lyzr Studio | One-shot | LYZR_API_KEY | REST API deployment, agent ID persistence, provider auto-mapping |
github | GitHub Models | One-shot (streaming) | GITHUB_TOKEN (models:read) | Model namespace mapping, streaming responses, multi-provider support |
git | Git (Auto-Detect) | Auto | Depends on detected adapter | .gitagent_adapter hint, model-based detection, file-based fallback |
opencode | OpenCode | Interactive / one-shot | OpenCode CLI | System prompt injection, tool mapping, config export |
gemini | Gemini | Interactive / one-shot | GEMINI_API_KEY | Gemini model mapping, streaming responses, multi-provider support |
gitclaw | GitClaw | Interactive / one-shot | ANTHROPIC_API_KEY, GitClaw CLI | Workspace generation, tool stubs, skill mapping |
Export Targets
| Target | Description | Command |
|---|---|---|
| Claude Code | Export to CLAUDE.md with skills, model hints, and compliance | opengap export -f claude-code |
| OpenAI Agents SDK | Generate Python code with Agent(), tool stubs, and type mappings | opengap export -f openai |
| CrewAI | YAML crew config with role/goal extraction and sub-agent mapping | opengap export -f crewai |
| OpenClaw | Workspace with config JSON, AGENTS.md, tools, and skills | opengap export -f openclaw |
| Nanobot | Config JSON + system prompt for Nanobot runtime | opengap export -f nanobot |
| Lyzr Studio | API payload with provider mapping and credential IDs | opengap export -f lyzr |
| GitHub Models | Chat completions payload with model namespace mapping | opengap export -f github |
| System Prompt | Single concatenated Markdown for any LLM | opengap export -f system-prompt |
| GitHub Copilot | Copilot workspace instructions and agent config | opengap export -f copilot |
| OpenCode | OpenCode system prompt and tool configuration | opengap export -f opencode |
| Cursor | Cursor rules file with agent identity and skills | opengap export -f cursor |
| Gemini | Gemini system instruction and tool definitions | opengap export -f gemini |
| Codex | OpenAI Codex agent config with tool stubs | opengap export -f codex |
| Kiro | Kiro agent spec with steering and hook definitions | opengap export -f kiro |
| GitClaw | GitClaw workspace with config and skill mapping | opengap export -f gitclaw |
Import Formats
Migrate existing agent configs into OpenGAP format:opengap import --from claude ./CLAUDE.md
opengap import --from cursor ./.cursorrules
opengap import --from crewai ./crew.yaml
claude, cursor, crewai, opencode, gemini, codex
CLI Reference
Full command and flag reference
Quick Start
Run your first agent with opengap run