mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-05-05 17:26:03 +00:00
docs: tighten macOS launchd setup
Made-with: Cursor
This commit is contained in:
parent
41f7eae7b4
commit
8a4c338a01
@ -18,7 +18,7 @@ Start here for setup, everyday usage, and deployment.
|
|||||||
| CLI reference | [`cli-reference.md`](./cli-reference.md) | Core CLI commands and common entrypoints |
|
| CLI reference | [`cli-reference.md`](./cli-reference.md) | Core CLI commands and common entrypoints |
|
||||||
| In-chat commands | [`chat-commands.md`](./chat-commands.md) | Slash commands and periodic task behavior |
|
| In-chat commands | [`chat-commands.md`](./chat-commands.md) | Slash commands and periodic task behavior |
|
||||||
| OpenAI-compatible API | [`openai-api.md`](./openai-api.md) | Local API endpoints, request format, and file uploads |
|
| OpenAI-compatible API | [`openai-api.md`](./openai-api.md) | Local API endpoints, request format, and file uploads |
|
||||||
| Deployment | [`deployment.md`](./deployment.md) | Docker and Linux service setup |
|
| Deployment | [`deployment.md`](./deployment.md) | Docker, Linux service, and macOS LaunchAgent setup |
|
||||||
|
|
||||||
## Advanced Docs
|
## Advanced Docs
|
||||||
|
|
||||||
|
|||||||
@ -103,11 +103,7 @@ On macOS, run the gateway as a `launchd` user agent so it starts automatically a
|
|||||||
which nanobot # e.g. /Users/youruser/.local/bin/nanobot
|
which nanobot # e.g. /Users/youruser/.local/bin/nanobot
|
||||||
```
|
```
|
||||||
|
|
||||||
If you installed nanobot with `uv tool`, you may also want the Python path for `ProgramArguments`:
|
Use this absolute `nanobot` path in `ProgramArguments` so the console script keeps the Python environment from your install method.
|
||||||
|
|
||||||
```bash
|
|
||||||
which python
|
|
||||||
```
|
|
||||||
|
|
||||||
**2. Create the LaunchAgent plist** at `~/Library/LaunchAgents/ai.nanobot.gateway.plist` (replace paths if needed):
|
**2. Create the LaunchAgent plist** at `~/Library/LaunchAgents/ai.nanobot.gateway.plist` (replace paths if needed):
|
||||||
|
|
||||||
@ -121,7 +117,6 @@ which python
|
|||||||
|
|
||||||
<key>ProgramArguments</key>
|
<key>ProgramArguments</key>
|
||||||
<array>
|
<array>
|
||||||
<string>/Users/youruser/.local/share/uv/tools/nanobot-ai/bin/python</string>
|
|
||||||
<string>/Users/youruser/.local/bin/nanobot</string>
|
<string>/Users/youruser/.local/bin/nanobot</string>
|
||||||
<string>gateway</string>
|
<string>gateway</string>
|
||||||
<string>--workspace</string>
|
<string>--workspace</string>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user