website/client/src/en/guide/remote-repository-processing.md
Process public repositories:
# Using full URL
repomix --remote https://github.com/user/repo
# Using GitHub shorthand
repomix --remote user/repo
# Specific branch
repomix --remote user/repo --remote-branch main
# Tag
repomix --remote user/repo --remote-branch v1.0.0
# Commit hash
repomix --remote user/repo --remote-branch 935b695
# Custom output location
repomix --remote user/repo -o custom-output.xml
# With XML format
repomix --remote user/repo --style xml
# Remove comments
repomix --remote user/repo --remove-comments
# Process and output to current directory
docker run -v .:/app -it --rm ghcr.io/yamadashy/repomix \
--remote user/repo
# Output to specific directory
docker run -v ./output:/app -it --rm ghcr.io/yamadashy/repomix \
--remote user/repo
For security, config files (repomix.config.*) in remote repositories are not loaded by default. This prevents untrusted repositories from executing code via config files such as repomix.config.ts.
Your global config and CLI options are still applied.
To trust a remote repository's config:
# Using CLI flag
repomix --remote user/repo --remote-trust-config
# Using environment variable
REPOMIX_REMOTE_TRUST_CONFIG=true repomix --remote user/repo
When using --config with --remote, an absolute path is required:
repomix --remote user/repo --config /home/user/repomix.config.json
--include to select specific paths--remove-comments--remote options