Skip to content

Your First Migration

This guide walks you through migrating a Discord server to Stoat from start to finish. It assumes you have already followed the install guide and the Stoat setup guide.


Prerequisites checklist

Before you start, confirm you have these ready:

For 1-Click Migration (recommended):

  • Your Discord user token, a secret key from your browser that gives Ferry temporary access to your Discord account (how to find it)
  • Your Discord server ID, right-click the server name in Discord and choose "Copy Server ID" (you may need to enable Developer Mode in Discord settings first)
  • Your Stoat API URL, https://api.stoat.chat for the official service, or your self-hosted domain
  • Your Stoat user token, a secret key your browser saves when you log in to Stoat. No bot or app creation needed. (how to find it)

For Offline Migration (advanced):

  • Your Discord export folder, produced by the free server export tool DiscordChatExporter (DCE), described in the export guide
  • Your Stoat API URL and Stoat user token, same as above

Discord token security

Your Discord token gives full access to your account. Never share it. Ferry does not store it to disk, it is held in memory only during the export.

Discord Terms of Service

Using a user token with third-party tools may violate Discord's Terms of Service. Ferry displays a disclaimer checkbox before proceeding. Use at your own risk.


Step 1: Open Ferry

  1. Double-click Ferry-windows-x86_64.exe (Windows) or open Ferry.app (macOS).
  2. Ferry opens its own window. No browser is launched.
  3. You will see the Setup screen.

Window blank or missing?

Open http://localhost:8765 in any browser while Ferry is running. That address is fully supported and shows the same interface. See Troubleshooting if the window itself will not draw.

  1. Open a terminal (the text command window, search "Terminal" in your applications).
  2. Put your tokens in environment variables, so they stay out of your shell history:
export DISCORD_TOKEN=YOUR_DISCORD_TOKEN
export STOAT_TOKEN=YOUR_STOAT_TOKEN
  1. Run the migrate command:
ferry migrate \
  --discord-server YOUR_SERVER_ID \
  --stoat-url https://api.stoat.chat

Set DISCORD_TOKEN and STOAT_TOKEN as environment variables before you run Ferry. If you keep them in an operator-owned file, select it explicitly: ferry --env-file /path/to/operator.env migrate .... Ferry never searches for .env files automatically, so do not select a file received with an export. The --discord-token and --token flags still work, but a token typed on the command line is saved in your shell history. The required settings (--stoat-url and the Stoat token) can be passed as flags or set as environment variables (STOAT_URL, STOAT_TOKEN). See Step 2 for full options.


Step 2: Configure

Fill in the fields on the Setup screen:

1-Click Migration mode (default):

  1. Discord token, paste your Discord user token (masked input).
  2. Discord server ID, paste the server ID.
  3. Acknowledge the ToS disclaimer, check the checkbox.
  4. Stoat API URL, select Official or Self-hosted.
  5. Stoat user token, paste the token you copied from your browser (see how to find it).

Offline mode ("I already have exports"):

  1. Toggle to "I already have exports".
  2. Export folder, browse to your DCE export folder.
  3. Stoat API URL and Stoat user token, same as above.

Advanced Options

Expand the Advanced Options section if you need to:

  • Adjust the rate limit delay (default 1.0 second between messages, increase if you see rate limit warnings)
  • Skip specific phases: emoji, messages, reactions, or threads/forum posts
  • Run a dry run to validate structure mapping without making API calls
  • Migrate into an existing Stoat server instead of creating a new one

These commands read DISCORD_TOKEN and STOAT_TOKEN from your environment, as set in Step 1. Passing --discord-token or --token also works, but the token then lands in your shell history.

Orchestrated mode (recommended):

ferry migrate \
  --discord-server YOUR_SERVER_ID \
  --stoat-url https://api.stoat.chat

Offline mode (with existing exports):

ferry migrate \
  --export-dir ./path/to/export/ \
  --stoat-url https://api.stoat.chat

If DISCORD_TOKEN is set in the environment, Ferry ignores it in offline mode and prints a note. Passing --discord-token with --export-dir remains an error.

Additional flags (the full list is in the CLI Reference):

Flag Effect
--skip-messages Import structure only, no messages
--skip-emoji Do not migrate custom emoji
--skip-reactions Do not migrate message reactions
--skip-threads Do not migrate threads or forum posts
--rate-limit 2.0 Set seconds between messages (default 1.0)
--server-id EXISTING_ID Migrate into an existing Stoat server
--dry-run Run all phases without making any API calls
--max-channels N Channel limit (default 200; raise for self-hosted)
--max-emoji N Emoji limit (default 100; raise for self-hosted)
--thread-strategy flatten (default), merge, or archive
--incremental Delta migration, only new messages since last run
--force Override freshness and other soft errors
--output-dir PATH Where reports and the state file are written (default ./ferry-output)
--verify-uploads Compare requested media IDs with attachment and embed-media IDs on the delivered message. A mismatch keeps the delivered message and records a diagnostic. This does not compare original bytes or download, reupload, or resend files.
--cleanup-orphans Report unreferenced Autumn uploads
--force-unlock Clear a stale migration lock, or continue when Ferry cannot take one
--skip-dce-verify Skip DCE binary SHA-256 verification
--reaction-mode text\|native\|skip How reactions migrate (default text, appended as a summary; native calls the reaction API; skip drops them)
--min-thread-messages N Skip threads with fewer than N messages (default 0 = all threads)
--checkpoint-interval N Save state at the first multiple of N messages reached 5 or more seconds after the last save (default 50; raise for very large runs)
--max-concurrent-channels N Channels processed in parallel (default 3; self-hosted only)
--max-concurrent-requests N Concurrent API calls across all channel workers (default 5)
--skip-avatars Skip author pictures; migrated messages show no author picture
--validate-after After migration, verify every channel, role, category and emoji by ID (same as ferry check; results in state.json)
--yes / -y Skip the terms-of-service confirmation prompt (for scripted runs)

Step 2.5: Export (1-Click mode only)

After clicking Continue, the Export screen appears. Ferry:

  1. Validates your Discord token
  2. Downloads DiscordChatExporter if not already present
  3. Exports all channels, threads, and media from your Discord server
  4. Shows per-channel progress

This step is automatic. When it finishes, Ferry moves to the Validate screen.

DCE is included for your platform

Ferry downloads the self-contained DCE 2.48 command-line archive for your operating system and processor. You do not need to install .NET separately.

In orchestrated mode, the export runs automatically before validation. You will see progress output as DCE exports each channel.


Step 3: Validate

Ferry checks your export files locally before making any API calls. Nothing is sent to Stoat during this step.

  1. Ferry opens the Validate screen on its own and parses all files. It shows:
    • Server name and export date
    • Counts: channels, messages, attachments, emoji
    • Warnings (amber) for any issues it finds
    • Estimated migration time
    • A green, amber, or red status indicator

What amber warnings mean

Amber warnings are not blockers. Common examples: some attachments were not downloaded with the export, or some message types will be skipped. Ferry will still proceed, check the details so you know what to expect.

  1. If the status is green or amber, click Start Migration to continue.
  2. If the status is red, the export is missing required data. Return to the export guide and re-export with the correct flags.

Run the standalone validate command for a validate-only check:

ferry validate ./export/

This prints the same summary to your terminal without starting a migration.

Tip

If you run ferry migrate without validating first, Ferry runs validation automatically before starting.


Step 3.5: Review what will be created

Before creating anything on Stoat, Ferry shows a review summary.

A dialog appears showing how many roles, categories, channels, emoji, and messages will be migrated. Review the numbers and any warnings, then click Proceed to continue or Cancel to go back.

The CLI prints a summary table before proceeding. In orchestrated mode this happens automatically; in offline mode it appears after validation.

Permission migration

In 1-Click mode, Ferry captures source permission evidence from Discord. Offline mode needs complete matching cached evidence. Missing evidence or access that cannot be preserved stops the operation instead of creating channels without proved access. See permission recovery. Flattened announcement and public threads also need a verified active, unlocked parent with matching inherited send access. Private threads, member-specific access, incomplete parent facts, and unequal thread-send access stop before Ferry creates a destination channel.


Step 4: Start the migration

  1. Click Proceed on the review dialog (or Start Migration if review was skipped).
  2. The Progress screen appears and shows:
    • Phase indicator, 13 phases, each with a checkmark when complete
    • Progress bar during the message import phase
    • Running totals: messages sent, attachments uploaded, errors
    • Live log stream at the bottom
    • Pause / Resume button
    • Cancel button (saves progress so you can resume later)

Do not close Ferry during migration

Closing the app window or the terminal stops the migration. Use the Pause button if you need to stop temporarily. Ferry saves its progress so you can resume from where it left off.

The migration starts immediately after validation. You will see formatted progress output in your terminal:

  • One progress bar per channel, updated in real time
  • Live stats: messages sent, attachments uploaded, errors
  • Any warnings or skipped items are printed as they occur

Parallel channel sends

The Messages phase processes multiple channels concurrently (default: 3 at a time). You will see progress bars for several channels running simultaneously. To adjust the concurrency level, use the GUI's Advanced Options or see the large-servers guide.

To pause and resume later, press Ctrl+C. Run the same command again with --resume to continue from the last checkpoint.


Step 5: Done

When all phases complete, Ferry shows a completion card with the error count and, when a Discord token was used, a native-fidelity line (slowmode settings, voice user limits, and role icons applied).

Click Open Report to view the full migration report, including message counts, attachment counts, and the fidelity score, a quantified measure of migration quality.

Ferry prints a summary table when it finishes, including a fidelity score, a quantified measure of migration quality (messages migrated vs. source total, attachment success rate, and other factors). The full report is saved to:

ferry-output/migration_report.json

Other files written to the output directory:

File Contents
state.json Channel, role, and emoji ID mappings (used for resume and incremental runs)
message_map.json Discord message ID → Stoat message ID mapping (used for reply linking and incremental runs)
discord_metadata.json Server structure and permission data fetched from Discord API
migration_report.md Human-readable summary with fidelity score and per-channel stats
migration_report.json Machine-readable full report including error details

What your Stoat server will look like

After a successful migration:

  • Selected supported channels and categories are recreated; unprovable access stops the operation
  • Flattened announcement and public threads are recreated only after Ferry verifies their parent relationship and inherited permissions; use --skip-threads to omit threads instead
  • Channels marked not safe for work (NSFW) are correctly flagged
  • Channel permission overrides (@everyone and per-role) are applied
  • Normal DCE forum-post exports do not currently produce a supported generated forum index; see known limitations
  • Roles are recreated with colours and hierarchy order; channel access must be proved before content, and members must be assigned separately
  • Messages appear under the original author's name and avatar, so conversations look natural
  • Original timestamps appear at the start of each message: *[2024-01-15 14:30 UTC]*
  • Embeds are preserved with uploaded thumbnails and images
  • Active polls are unavailable because DCE 2.48 does not export them. Closed-poll notifications keep the fallback text and embeds that DCE writes.
  • Sticker images are uploaded as attachments (with text fallback for unsupported formats)
  • Pinned messages are re-pinned in their channels
  • Custom emoji are available in the server
  • Migrated messages use Stoat's notification-suppression flag to avoid notification spam

Why do messages show a timestamp at the start?

Stoat does not support importing historical message timestamps. Ferry embeds the original date and time as the first line of each message so the conversation history stays readable.


What if something goes wrong?

Migration paused or crashed?

Reopen Ferry and start the migration again with the same output folder. A Previous migration found card appears. Click Resume and Ferry picks up from the last checkpoint. Start Fresh ignores the saved progress instead.

Add --resume to your original command:

ferry migrate --discord-server ... --stoat-url ... --resume

Seeing errors in the log?

Most errors are non-fatal. Ferry logs them and continues. A failed attachment upload or a skipped message does not stop the whole migration. Check ferry-output/migration_report.json for a list of everything that was skipped and why.

Rate limit warnings?

Slow Ferry down to give the Stoat server more breathing room:

Go back to the Setup screen, expand Advanced Options, and increase the rate limit delay slider.

Add --rate-limit 2.0 (or higher) to your command.

Need more help?

See the troubleshooting guide for a full list of error messages and fixes.