简体中文 | English | 日本語 | 한국어 | Русский | Español | Português (Brasil)
Thanks for helping make AnyModelBot better. Bug reports, fixes, docs and ideas are all welcome.
- Questions, ideas, show and tell: GitHub Discussions
- Bugs and feature requests: GitHub Issues, using the templates
- Security problems: do not open a public issue; report privately as described in SECURITY.md
- Anything else: email support@anymodel.bot
When reporting a bug, please include:
- The version (Settings → About), your operating system and architecture (for example Windows 11 x64, macOS 15 Apple silicon), and how you run it (desktop / command line / Docker)
- Steps to reproduce, what you expected and what happened
- Diagnostics: Settings → Troubleshooting → "Copy diagnostics" (API keys and tokens are replaced with
***). Logs are inlogs/app.loginside the data directory; see docs/privacy_en.md for where that is - The model ID, if the problem involves a specific model
Requires Node.js 22.13+ and Go 1.26.8+ (to compile the bundled magpie gateway).
git clone https://github.com/modelflare-ai/AnyModelBot.git
cd AnyModelBot
npm install
npm run setup # fetch the vendor/magpie submodule and compile it into build/bin/| Command | What it does |
|---|---|
npm start |
Run from the command line: gateway + bots + console at http://127.0.0.1:3600/ |
npm run dev |
Same, restarting on code changes |
npm run electron:dev |
Desktop app in development mode |
npm run electron:smoke |
Desktop smoke test (uses xvfb-run on headless Linux) |
npm run typecheck |
TypeScript type check |
npm test |
Unit tests + offline end-to-end + gateway integration tests |
npm run test:dsh-bundle |
Real DSH integration test under Electron (run prepare:dsh + bundle:dsh first) |
npm run docs:check |
README self-check |
Repository layout, packaging and channel setup are covered in the development guide.
-
Fork the repo and create a branch from
master. -
Before you push, run:
npm run typecheck && npm test
If you changed the README or
docs/, also runnpm run docs:check. -
Open a pull request against
masterdescribing what changed, why, and how you verified it. Include screenshots for UI changes. -
For anything larger than a small fix (new features, architecture changes, new dependencies), open an issue first so we can agree on the approach before you invest the time.
-
Keep one change per PR; follow the existing commit style (
feat(scope): …,fix(scope): …).
- Use the tokens and components in
ui/design(seeui/design/README.md); no one-off colors or font sizes. - The brand accent is fluorescent yellow-green
#d7ff00; do not introduce blue into the UI. - The console is Preact + htm with no build step; please do not add a bundler or front-end dependencies that need compiling.
- Check both the light and dark themes.
- Don't hard-code UI text: add it to
ui/locales/zh-CN/andui/locales/en/(both languages) and uset(); runnode scripts/i18n-check.mjsbefore submitting. Check both languages — English is usually longer.
- When you add a dependency or port or adapt external code, update
THIRD_PARTY_NOTICES.mdwith the source, version and license. - Do not add components whose licenses are incompatible with MIT distribution, such as AGPL, SSPL or FSL.
Be kind and stick to the facts. Respect every participant and critique ideas, not people; harassment, personal attacks and discriminatory language are not accepted. Maintainers may remove content that does not meet these expectations. To raise a concern, email support@anymodel.bot.
Contributions you submit are released under this repository's MIT License.