Skip to content

Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors

fix(pnpm): remove @swc/helpers override conflict, add pnpm build-scripts config (#328)

diegosouzapw02b19e63e835
diff --git a/README.md b/README.md
index 47ba3fc112..764db93780 100644
--- a/README.md
+++ b/README.md
@@ -711,6 +711,14 @@ npm install -g omniroute
omniroute
```
+> **pnpm users:** Run `pnpm approve-builds -g` after install to enable native build scripts required by `better-sqlite3` and `@swc/core`:
+>
+> ```bash
+> pnpm install -g omniroute
+> pnpm approve-builds -g # Select all packages → approve
+> omniroute
+> ```
+
Dashboard opens at `http://localhost:20128` and API base URL is `http://localhost:20128/v1`.
| Command | Description |
diff --git a/package.json b/package.json
index b2c38b82b9..d42737ed8b 100644
--- a/package.json
+++ b/package.json
@@ -143,7 +143,14 @@
"prettier --write"
]
},
- "overrides": {
- "@swc/helpers": "0.5.19"
+ "pnpm": {
+ "onlyBuiltDependencies": [
+ "@parcel/watcher",
+ "@swc/core",
+ "better-sqlite3",
+ "esbuild",
+ "omniroute",
+ "sharp"
+ ]
}
}