Multi-source MTG deck converter for Cockatrice. Import your Magic: The Gathering decks from Moxfield, Archidekt, and other online deck builders into Cockatrice format.* Please note this has been mostly tested with the Commander format.
- Support for multiple deck sources (Moxfield, Archidekt)
- Batch import all decks or select specific ones
- Preserves deck metadata (commanders, formats, set codes, themes)
- Simple configuration file or CLI arguments
- Auto-sync workflow for keeping decks up-to-date
pip install deck2triceuv run deck2trice (command)Run once with your preferences - they'll be saved automatically:
deck2trice --source (moxfield|archidekt) --username yourname --deckpath /path/to/decks --all_decksThe path to cockatrice decks is usually :
- Linux : ~/.local/share/Cockatrice/Cockatrice/decks
- Windows : "%LOCALAPPDATA%\Cockatrice\Cockatrice\decks
This will get all your public decks on run and parse them to cockatrice with ease!
From then on, just run:
deck2triceOr create ~/.deck2trice.yml manually:
username: your_username
source: moxfield # or 'archidekt'
fetch_all: true
deckpath: /path/to/cockatrice/decks
decks: []# Use config file
deck2trice
# One-off import without config file
deck2trice --no_config --source archidekt --username yourname --all_decks
# Test run without saving
deck2trice --dryrunCreate ~/.deck2trice.yml with these options:
username: your_username # Required: Your deck site username
source: archidekt # Required: 'moxfield' or 'archidekt'
deckpath: /path/to/decks # Optional: Where to save .cod files
fetch_all: true # true = all decks, false = specific decks only
decks: [] # Specific deck IDs (when fetch_all: false)All flags override config file values:
--source <source>- Deck source (moxfield or archidekt)--username <name>- Your username--deckpath <path>- Where to save decks--all_decks- Fetch all decks--no_config- Bypass config file--dryrun- Test without writing files--version- Show version
| Source | Status | Features |
|---|---|---|
| Moxfield | Full Support | Decks, commanders, sideboards, themes |
| Archidekt | Full Support | Decks, commanders, categories, tags |
Want another source? Open an issue or submit a PR!
Generates .cod files for Cockatrice with:
- Deck name and description
- Commander(s) as banner cards
- Format tags
- Set codes and collector numbers
- Scryfall UUIDs
- Themes/tags
- Sideboard and maybeboard
git clone https://github.com/liperium/deck2trice.git
cd deck2trice
uv syncApache License 2.0 - see LICENSE file for details
Inspired by moxtrice by Xie Zejian. This fork adds multi-source support and improved architecture.
- Issues: GitHub Issues
- Discussions: GitHub Discussions