muse-bot
A command-line client for your personal muse.ai agent. Muse ships only a macOS app and a web app; muse-bot gives you a scriptable terminal instead. You can chat, read and manage side chats, the feed, goals, ideas and sessions, and call any of the 258 gateway methods.
- JSON everywhere. Every command prints JSON on stdout, so it pipes into
jq, cron jobs and other agents. Diagnostics go to stderr. - No extra login. It borrows the muse.ai login you already have in Google Chrome or ego lite.
- Agent-ready.
skills/muse-bot/SKILL.mdteaches coding agents to drive it.
muse-bot is a TypeScript port of nikships/muse-cli (Python, MIT). That project reverse-engineered the protocol: see its docs/PROTOCOL.md.
Install
npm i -g muse-bot # Node.js 24 or newer
uv tool install muse-bot # or pipx/pip: a standalone binary, no Node needed
npx skills add OpenSWE/muse-bot # optional: the agent skill, for coding agents
The PyPI wheels cover macOS 13+ (arm64, x64) and Linux with glibc 2.17+ (x64, arm64).
Log in
Log in at https://muse.ai/ in Google Chrome or ego lite, then run any command. When
~/.config/muse-bot/cookies.txt is missing or expired, muse-bot copies the muse.ai cookies
out of the browser and saves them there (mode 600). To do it explicitly:
muse-bot auth export # Chrome first, then ego lite
muse-bot auth export --browser ego # one browser only
- Google Chrome is read through agent-browser.
muse-bot installs it with
npm i -g agent-browserthe first time it is needed. Keep a muse.ai tab open. muse-bot connects on port 9222 when Chrome runs with--remote-debugging-port=9222. Otherwise turn on remote debugging atchrome://inspect/#remote-debuggingand click Allow when Chrome asks. - ego lite is read through its
ego-browserCLI, when the app is installed.
Without a browser, paste the cookies from DevTools (Application → Cookies → https://muse.ai).
hatch_sess is required:
printf '%s\n' 'hatch_sess=VALUE; other=VALUE' | muse-bot auth import
Usage
muse-bot # interactive chat (type /help inside)
muse-bot status # VM, session count, unread, identity
muse-bot threads [--all] # main chat and side chats
muse-bot history --limit 5 [--thread <id>] # recent messages
muse-bot send "summarize my unread" --wait 120 # send and wait for the reply
muse-bot watch --timeout 60 # live events, one JSON object per line
muse-bot feed --limit 5
muse-bot goals
muse-bot ideas
muse-bot idea-exec <idea-id> # the agent acts on the idea
muse-bot session-start --title "trip planning" # also session-rename, -pin, -unpin,
# -archive, -unarchive, -delete
muse-bot raw <method> --body '{}' --param k=v # any gateway method
muse-bot --help lists every command, and muse-bot <command> --help lists its flags.
muse-bot send "what's on my calendar today?" | jq -r .reply.text
Exit codes
| Code | Meaning |
|---|---|
| 0 | ok |
| 1 | error (gateway, network) |
| 2 | usage |
| 3 | auth: the login is missing or expired |
Environment
| Variable | Effect |
|---|---|
MUSE_NO_AUTO_LOGIN=1 |
never read a browser or install agent-browser (same as --no-auto-login); use it in cron |
MUSE_COOKIES |
cookie jar path (default ~/.config/muse-bot/cookies.txt) |
MUSE_VM_ID |
skip VM discovery |
XDG_CONFIG_HOME |
moves the config folder |
Known limits
idea-exec --threadis ignored by the current server: the idea runs in the main chat, and muse-bot warns about it.- muse.ai's gateway API is internal and unversioned. When whole groups of calls start failing, the protocol has drifted.
- Respect muse.ai's terms and rate limits. Write commands act as you inside your agent.
Development
pnpm install
pnpm dev status # run from source (Node 24 strips the types)
pnpm test # offline tests
MUSE_LIVE=1 pnpm test # also read-only checks against your account
pnpm typecheck && pnpm lint && pnpm build
Design decisions and their reasons are in DECISIONS.md.
License
MIT.
Metadata
Release files for muse-bot 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Actions Reset | |||
|---|---|---|---|---|
| muse_bot-1.0.3-py3-none-manylinux_2_17_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details for muse_bot-1.0.3-py3-none-manylinux_2_17_x86_64.whl |
| muse_bot-1.0.3-py3-none-manylinux_2_17_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details for muse_bot-1.0.3-py3-none-manylinux_2_17_aarch64.whl |
| muse_bot-1.0.3-py3-none-macosx_13_0_x86_64.whl | Python 3 | none | macOS 13.0+ x86-64 | Details for muse_bot-1.0.3-py3-none-macosx_13_0_x86_64.whl |
| muse_bot-1.0.3-py3-none-macosx_13_0_arm64.whl | Python 3 | none | macOS 13.0+ ARM64 | Details for muse_bot-1.0.3-py3-none-macosx_13_0_arm64.whl |
Total release size: 188.3 MB
Release files / muse_bot-1.0.3-py3-none-manylinux_2_17_x86_64.whl
| Download URL | muse_bot-1.0.3-py3-none-manylinux_2_17_x86_64.whl |
|---|---|
| Size | 52.0 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
cf53af74af42503950f6adfe8d84545b01f24f96097e39bc5eebdbb1ed41ea8e
|
|
BLAKE2b-256 checksum How to use checksums |
22261711e50fd820f769eb82dc917e755ff9bcd6f011214ec462ce854362aa87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / muse_bot-1.0.3-py3-none-manylinux_2_17_aarch64.whl
| Download URL | muse_bot-1.0.3-py3-none-manylinux_2_17_aarch64.whl |
|---|---|
| Size | 51.8 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
c3fe9ae1e2be9dbde8fece9b33e8371823dc860afd9c7075bc0301fac510871a
|
|
BLAKE2b-256 checksum How to use checksums |
3278cd27f6943748646bdf24a84e33226f88c327f5fabe00f66a1d9a0f3f3e99
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / muse_bot-1.0.3-py3-none-macosx_13_0_x86_64.whl
| Download URL | muse_bot-1.0.3-py3-none-macosx_13_0_x86_64.whl |
|---|---|
| Size | 43.6 MB |
| Tags | Python 3 macOS 13.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
419a7ef042561cca2aa324f226e2329121e8cbe1f907ebd3203efe1cbf56fdc7
|
|
BLAKE2b-256 checksum How to use checksums |
4993fe4ea82f627e185b252a29acdae565e7836a9994d6ac6fc4829d6d8d6c21
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logRelease files / muse_bot-1.0.3-py3-none-macosx_13_0_arm64.whl
| Download URL | muse_bot-1.0.3-py3-none-macosx_13_0_arm64.whl |
|---|---|
| Size | 41.0 MB |
| Tags | Python 3 macOS 13.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
45cbdec71f613ef684c165affdfc9c27676d757cdf2a83bb1eaa95dd860ecf33
|
|
BLAKE2b-256 checksum How to use checksums |
6ab72ceba997d998f31a0303921da65f1264abc60898e75ab575e9b515a89bd6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logSecurity for muse-bot 1.0.3
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 4 files in this release have been uploaded with provenance metadata.
Attestation for muse_bot-1.0.3-py3-none-manylinux_2_17_x86_64.whl
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 26, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.