---
name: Export & Import Agents
slug: export-import-agents
category: AI Engineering
description: Export & Import Agents converts agent definitions between frameworks such as Claude Code, OpenAI, CrewAI, Lyzr, and GitHub Models, and imports from Claude, Cursor, and CrewAI projects.
github: "https://github.com/open-gitagent/opengap/tree/main/examples/gitagent-helper/skills/export-agent"
language: TypeScript
stars: 2916
forks: 346
install: "npx degit https://github.com/open-gitagent/opengap/tree/main/examples/gitagent-helper/skills/export-agent ~/.claude/skills/export-agent"
installs_to: ~/.claude/skills/export-agent
source_path: examples/gitagent-helper/skills/export-agent/SKILL.md
collection_size: 18
category_size: 2451
collection_url: "https://dirskills.com/collections/open-gitagent/opengap"
added: 2026-08-17T07:10:03.560Z
last_synced: 2026-08-17T07:10:03.560Z
canonical_url: "https://dirskills.com/skills/export-import-agents"
---

# Export & Import Agents

Export & Import Agents converts agent definitions between frameworks such as Claude Code, OpenAI, CrewAI, Lyzr, and GitHub Models, and imports from Claude, Cursor, and CrewAI projects.

**Install:**

```bash
npx degit https://github.com/open-gitagent/opengap/tree/main/examples/gitagent-helper/skills/export-agent ~/.claude/skills/export-agent
```

## README

# Export & Import Agents

## Verify Export

After exporting, check the output matches expectations:

```bash
# Verify export file was created and contains agent name
opengap export -f system-prompt -d ./my-agent | head -5
```

## Export

Convert a gitagent definition to another framework:

```bash
opengap export -f <format> -d ./my-agent [-o output-file]
```

### Formats

| Format | Output | Use Case |
|--------|--------|----------|
| `system-prompt` | Markdown | Universal — paste into any LLM |
| `claude-code` | CLAUDE.md | Drop into a Claude Code project |
| `openai` | Python | Run with OpenAI Agents SDK |
| `crewai` | YAML | Run with CrewAI |
| `openclaw` | JSON + MD | Run with OpenClaw |
| `nanobot` | JSON + MD | Run with Nanobot |
| `lyzr` | JSON | Create agent on Lyzr Studio |
| `github` | JSON | Call GitHub Models API |

### Examples

```bash
# Get a system prompt for any LLM
opengap export -f system-prompt -d ./my-agent

# Generate a CLAUDE.md
opengap export -f claude-code -d ./my-agent -o CLAUDE.md

# Generate Python code for OpenAI
opengap export -f openai -d ./my-agent -o agent.py

# Preview what Lyzr API will receive
opengap export -f lyzr -d ./my-agent

# Preview GitHub Models payload
opengap export -f github -d ./my-agent
```

## Import

Convert existing agent frameworks into gitagent:

```bash
opengap import --from <format> <path> [-d target-dir]
```

### Sources

| Source | Input | What It Creates |
|--------|-------|-----------------|
| `claude` | CLAUDE.md, .claude/skills/ | agent.yaml, SOUL.md, RULES.md, skills |
| `cursor` | .cursorrules | agent.yaml, SOUL.md, AGENTS.md |
| `crewai` | crew.yaml | agent.yaml, SOUL.md, agents/ |

### Examples

```bash
# Import a Claude Code project
opengap import --from claude ./my-project

# Import from Cursor
opengap import --from cursor ./.cursorrules

# Import CrewAI config
opengap import --from crewai ./crew.yaml -d ./imported
```
