> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lyzr.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Framework Adapters

> One agent definition, eleven runtime targets. Export to any AI framework with a single command.

OpenGAP supports 11 runtime adapters and 14 export formats. Define your agent once in `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:

```bash theme={null}
opengap import --from claude ./CLAUDE.md
opengap import --from cursor ./.cursorrules
opengap import --from crewai ./crew.yaml
```

Supported import formats: `claude`, `cursor`, `crewai`, `opencode`, `gemini`, `codex`

<CardGroup cols={2}>
  <Card title="CLI Reference" icon="terminal" href="/open-source/opengap/cli">
    Full command and flag reference
  </Card>

  <Card title="Quick Start" icon="rocket" href="/open-source/opengap/quickstart">
    Run your first agent with opengap run
  </Card>
</CardGroup>
