# How to Install Vencord for Discord: Plugins, Themes and Account Risks

> AI Release · @ai_releaseorg · https://ai-release.org/guides/kak-ustanovit-vencord-na-discord-plaginy-temy-i-chem-et_en.html

## TL;DR
- **Time:** 20–30 minutes on a machine that already runs Discord desktop.
- **Difficulty:** Intermediate (command line, admin/sudo rights, one build step).
- **You need:** Discord desktop (stable) installed, Git, Node.js LTS, Corepack/pnpm, ~1 GB free disk, and a Discord account you are willing to put at risk.

## What you will get
- A patched Discord desktop app that loads Vencord at startup, with a **Vencord** tab in User Settings containing a **Plugins** list and a **Themes** folder you can drop `.theme.css` files into.
- A local source clone at `~/Vencord` and a backup copy of the original `app.asar`, so you can return the client to stock with one command.
- A written rollback path (`pnpm uninject`) that you will have tested once, not assumed.

## Quick start
```bash
git clone https://github.com/Vencord/Vencord.git ~/Vencord
cd ~/Vencord
node -v && corepack enable
pnpm install && pnpm build && pnpm inject
```
Details and verification — in the steps below.

## Requirements and setup
![Illustration: Requirements and setup](https://ai-release.org/guides/img/kak-ustanovit-vencord-na-discord-plaginy-temy-i-chem-et-en-1.jpg?v=1796287227)

- **OS:** Windows 10/11, macOS, or a Debian-based Linux. Flatpak and Snap builds of Discord keep their files in sandboxed paths and are the usual cause of failed patches — use the `.deb`/`.tar.gz` or the official installer.
- **Discord desktop (stable).** The browser version and the mobile app cannot be patched at all; there is no `app.asar` to modify.
- **Git** — `git --version` must print a version.
- **Node.js LTS** and **Corepack.** The repository's `package.json` declares the minimum Node version and the exact pnpm version in its `packageManager` field; we do not pin a release number here — open that file and confirm before you install.
- **Rights:** `sudo` on Linux/macOS for `pnpm inject`, an elevated PowerShell on Windows if Discord sits in `Program Files`.
- **Disk:** roughly 1 GB for `node_modules` plus the build output.
- **Account decision:** read the risk block in Step 1 *before* you run `pnpm inject`.

## Step 1. Prepare the toolchain, find the file to patch, and decide which account you patch
![Illustration: Step 1. Prepare the toolchain, find the file to patch, and decide which account you patch](https://ai-release.org/guides/img/kak-ustanovit-vencord-na-discord-plaginy-temy-i-chem-et-en-2.jpg?v=1796287230)


**What to do:** Install the toolchain, locate the exact file Vencord will modify, copy it as a backup, and choose which Discord account you will use.

**Why:** Vencord is a *client mod* — it does not run as a separate program. It rewrites `app.asar`, the archive that holds Discord's own JavaScript, so Discord loads Vencord's code instead of the stock entry point. That is why you need write access to the installation directory, and why an update can undo everything.

Locate the target file:

| OS | File to patch |
|---|---|
| Windows | `%LocalAppData%\Discord\app-<version>\resources\app.asar` |
| macOS | `/Applications/Discord.app/Contents/Resources/app.asar` |
| Linux (deb) | `/usr/share/discord/resources/app.asar` |

`<version>` is a folder like `app-1.0.9xxx` that changes with every Discord update — do not hardcode it in scripts.

Prepare the tools and the backup:

```bash
node -v                 # prints the Node.js version you installed
corepack enable         # makes pnpm available without a global npm install
pnpm -v                 # prints the pnpm version pinned by package.json
```

```bash
# Linux/macOS: keep a pristine copy before anything touches it
sudo cp /usr/share/discord/resources/app.asar /usr/share/discord/resources/app.asar.bak
```

```powershell
# Windows
Copy-Item "$env:LOCALAPPDATA\Discord\app-<version>\resources\app.asar" `
          "$env:LOCALAPPDATA\Discord\app-<version>\resources\app.asar.bak"
```

**Account risk, decide now:** modifying the Discord client is not supported by Discord, and client modifications sit outside what the Terms of Service allow — enforcement is discretionary and there is no published list of "approved" mods. Concretely: patch a **secondary account** first, keep the main account on the stock client, and never log into a patched client with a token you care about. If you want plugins without touching the official install, use a standalone client that ships the mod preinstalled (Vesktop is the common one — verify the current project page and checksum before downloading, the same way the [WordCraft APK guide](https://ai-release.org/guides/wordcraft-apk-android-skachat.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide) verifies an Android build).

Pre-flight checklist:

- [ ] `git --version` prints a version
- [ ] `node -v` and `pnpm -v` both print versions
- [ ] `app.asar.bak` exists next to `app.asar`
- [ ] The account you will patch is the secondary one
- [ ] You know where the Themes folder is opened from (Step 2)

**How to check:** `ls -l /usr/share/discord/resources/` (or `dir` on Windows) shows both `app.asar` and `app.asar.bak` with the same size. `pnpm -v` prints a version number, not `command not found`.

## Step 2. Clone, build, inject, then add plugins and themes

**What to do:** Get the source, compile it, patch Discord, restart, and enable what you need.

**Why:** `pnpm build` produces the bundle in `dist/`; `pnpm inject` is the step that actually writes Vencord into `app.asar` and installs the loader. Building first matters — injecting a source tree without a build gives you a client that loads and then fails silently. The sequence (clone → install → build → patch) is the same one we walk through in [Sideraven: install from GitHub and migrate your bookmarks](https://ai-release.org/guides/sideraven-ustanovka-s-github.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide).

```bash
git clone https://github.com/Vencord/Vencord.git ~/Vencord
cd ~/Vencord
pnpm install
pnpm build
sudo pnpm inject      # omit sudo on Windows
```

`pnpm inject` is interactive: it scans for Discord installations and asks which one to patch. If it offers an alternative Discord core (OpenAsar), decline unless you specifically want it — it replaces more of the client and makes rollback harder to reason about.

Then, in Discord:

1. **User Settings → Vencord → Plugins.** Search for a plugin, flip the toggle. Some plugins need a reload: close the window or press `Ctrl+R`.
2. **User Settings → Vencord → Themes → Open Themes Folder.** Drop a file named `<name>.theme.css` into it — the `.theme.css` suffix is required, a plain `.css` will not be listed. Enable it in the Themes list and press `Ctrl+R`.

**Example:** enable the `PlatformIndicators` plugin, reload, open any server member list — small platform icons (desktop, web, mobile) appear next to usernames. If nothing changes, the plugin did not load.

Plugin ecosystems deserve the same caution as any third-party extension: a plugin runs inside your client with access to your session. Install only from the official repository, and read the source of anything a stranger sends you. The trust model is identical to the one described in [DeepSeek Harness Desktop: How to Install and Add Plugins on Windows and Mac](https://ai-release.org/guides/deepseek-harness-desktop-kak-ustanovit-i-podklyuchit-pl.html?utm_source=tg&utm_medium=channel&utm_campaign=guide_inline&utm_content=guide_to_guide).

**How to check:** `ls dist/` lists built files after `pnpm build`. After injection and a Discord restart, **User Settings** shows a **Vencord** section with a plugi count. `git log -1 --oneline` in `~/Vencord` confirms which commit you built.

## Step 3. Verify the patch end-to-end and test the rollback
![Illustration: Step 3. Verify the patch end-to-end and test the rollback](https://ai-release.org/guides/img/kak-ustanovit-vencord-na-discord-plaginy-temy-i-chem-et-en-3.jpg?v=1796287234)


**What to do:** Prove the mod survived a restart, then deliberately revert and re-apply it once.

**Why:** An untested rollback is not a rollback. Discord updates frequently and each update lands in a new `app-<version>` folder, which means your patch can vanish overnight; knowing the recovery command before that happens is the difference between a 5-minute fix and a reinstall.

```bash
# 1. Confirm Vencord is live
#    User Settings -> Vencord -> Plugins -> toggle any plugin -> Ctrl+R -> still enabled

# 2. Roll back
cd ~/Vencord
sudo pnpm uninject
```

Restart Discord: the **Vencord** tab is gone and the client is stock. That is success. Now re-apply:

```bash
sudo pnpm inject
```

**How to check:** after `uninject` the Vencord tab disappears; after `inject` it comes back and your previously enabled plugins are still toggled on (settings live outside the patched archive). If the tab returns but plugins are off, your settings file is not being read — check the Vencord data folder location in the documentation.

## Troubleshooting

**Problem. The patch disappears after a Discord update**
- Error: the client starts normally, **User Settings** has no `Vencord` section, and the installer lists your Discord with the status line `Not patched`.
- Cause: Discord downloaded a new `app-<version>` folder and launches that; your patch lives in the old one. Nothing is broken — the target moved.
- Solution: `cd ~/Vencord && git pull && pnpm install && pnpm build && sudo pnpm inject`, then select the newly detected installation. Expect to repeat this after major Discord updates.

**Problem. Injection fails with a permission error on Linux**
- Error: `EACCES: permission denied, open '/usr/share/discord/resources/app.asar'`
- Cause: the resources directory is owned by root, or Discord came from a sandboxed package (Flatpak/Snap) whose files are read-only from your shell.
- Solution: re-run with `sudo pnpm inject`. If it still fails, confirm the real path with `readlink -f $(which discord)`; for Flatpak/Snap installs, remove the sandboxed build and install the `.deb` instead — injecting into the sandbox path is not supported.

**Problem. `pnpm` is not recognised**
- Error: `pnpm: command not found` (Linux/macOS) or `pnpm : The term 'pnpm' is not recognized as the name of a cmdlet` (PowerShell).
- Cause: Corepack was enabled in a different shell, or the shell was never restarted after `corepack enable`.
- Solution: close and reopen the terminal, then `corepack enable && pnpm -v`. If it persists, `corepack prepare pnpm@latest --activate` — but note that the repository's `packageManager` field pins the version it expects, so let Corepack resolve it from the repo rather than forcing a version globally.

## Summary and next steps
You now have a patched Discord client, a plugins and themes setup you configured yourself, and a tested `pnpm uninject` rollback. Next: keep the clone under version control discipline (`git pull` before every rebuild) and re-read the repository's README whenever a plugin you rely on changes, since client mods break silently rather than loudly.

## FAQ

**Is Vencord a virus?**
No — it is open-source code that patches Discord's `app.asar`. But "open source" only protects you if you build from the official repository; a prebuilt archive from a random Discord server is unverifiable and can read your session token.

**Can I get banned for using it?**
Client modifications are outside what Discord's Terms of Service permit, enforcement is discretionary, and no mod is officially approved. Treat the patched account as disposable and keep your main account on the stock client.

**Does it work in the browser or on my phone?**
No. The patch modifies the desktop app's local files; discord.com in a browser and the mobile apps have nothing to patch.

**Do I have to rebuild after every Discord update?**
Yes. Each update installs into a new `app-<version>` folder, so the existing patch is bypassed. Re-run `pnpm build && sudo pnpm inject` against the new installation.
