Skip to content

agentstack import

Terminal window
agentstack import --from <tool> --source <path> [--profile-file <path>]

The import command reads an existing AI tool’s native configuration and converts it to a canonical agentstack.yaml profile. Use this to migrate from manually maintained configs to AgentStack.

Supported source tools: codex, claude, opencode.

FlagTypeRequiredDescription
--from <tool>codex|claude|opencodeYesSource tool to import from
--source <path>stringYesPath to the tool’s native config file
--profile-file <path>stringNoOutput path for the canonical profile (default: ~/.agentstack/profiles/main/agentstack.yaml)

Import from Codex:

Import Codex config
agentstack import \
--from codex \
--source ~/.codex/config.yaml

Import from Claude Code to a custom profile path:

Import Claude Code config
agentstack import \
--from claude \
--source ~/.claude/settings.json \
--profile-file ~/.agentstack/profiles/work/agentstack.yaml

Import from OpenCode:

Import OpenCode config
agentstack import \
--from opencode \
--source ~/.config/opencode/config.json