docs(readme): document network mode
This commit is contained in:
parent
efd0c7edfd
commit
16d5fa7a45
24
README.md
24
README.md
@ -23,6 +23,30 @@ agenthub status --update
|
|||||||
- Codex CLI
|
- Codex CLI
|
||||||
- Kimi Code CLI
|
- Kimi Code CLI
|
||||||
|
|
||||||
|
## Network Mode
|
||||||
|
|
||||||
|
AgentHub can expose a project to other machines on the same network.
|
||||||
|
|
||||||
|
On the host machine (e.g. Mac):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
cd my-project
|
||||||
|
agenthub init
|
||||||
|
agenthub server start --host 0.0.0.0 --port 3377
|
||||||
|
```
|
||||||
|
|
||||||
|
On another machine (e.g. Windows):
|
||||||
|
|
||||||
|
```powershell
|
||||||
|
$env:AGENTHUB_SERVER="http://<mac-ip>:3377"
|
||||||
|
agenthub task create --title "Windows task" --role implementer
|
||||||
|
agenthub status
|
||||||
|
```
|
||||||
|
|
||||||
|
Use `--server http://<ip>:3377` on each command instead of the environment variable if you prefer.
|
||||||
|
|
||||||
|
`init` always runs locally on the host machine.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
MIT
|
MIT
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user