readme: move httpgw docs to httpgw/README.md
This commit is contained in:
parent
da611d3ef2
commit
fea481e928
20
README.md
20
README.md
|
|
@ -100,11 +100,9 @@ olliesrv start -strict -yolo # tools only, no sandbox
|
||||||
|
|
||||||
## Remote Access
|
## Remote Access
|
||||||
|
|
||||||
Two approaches: mount the 9P namespace directly with `9pfuse`, or reach it over HTTP via `ollie-httpgw`.
|
|
||||||
|
|
||||||
### 9P mount
|
### 9P mount
|
||||||
|
|
||||||
Because `olliesrv` speaks 9P over TCP, a remote instance can be mounted into the local namespace using `9pfuse`. Agent sessions, tools, and all other filesystem state on a remote host become ordinary local files — no special client needed.
|
`olliesrv` speaks 9P over TCP. A remote instance can be mounted into the local namespace using `9pfuse`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
# On the remote host:
|
# On the remote host:
|
||||||
|
|
@ -119,17 +117,7 @@ Sessions created under `~/mnt/remotehost/s/` run on the remote host, so tool cal
|
||||||
|
|
||||||
### HTTP gateway
|
### HTTP gateway
|
||||||
|
|
||||||
`ollie-httpgw` translates HTTP to 9P, letting any HTTP client interact with `olliesrv` without a 9P library. It's also the backend for the web UI.
|
See [httpgw/](https://github.com/lneely/ollie/blob/main/httpgw/) for the HTTP REST gateway (`ollie-httpgw`).
|
||||||
|
|
||||||
```sh
|
|
||||||
# Connect to local server:
|
|
||||||
ollie-httpgw
|
|
||||||
|
|
||||||
# Connect to remote server:
|
|
||||||
ollie-httpgw -net tcp -addr remotehost:9564
|
|
||||||
```
|
|
||||||
|
|
||||||
See [doc/USAGE.md](https://github.com/lneely/ollie/blob/main/doc/USAGE.md) for full details on the gateway and web UI.
|
|
||||||
|
|
||||||
### Container
|
### Container
|
||||||
|
|
||||||
|
|
@ -140,12 +128,10 @@ podman build --network=host -t olliesrv .
|
||||||
podman run --network=host -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY olliesrv
|
podman run --network=host -e ANTHROPIC_API_KEY=$ANTHROPIC_API_KEY olliesrv
|
||||||
```
|
```
|
||||||
|
|
||||||
Then mount locally or point httpgw at it:
|
Then mount locally:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
olliesrv mount localhost:9564 ~/mnt/container-ollie
|
olliesrv mount localhost:9564 ~/mnt/container-ollie
|
||||||
# or
|
|
||||||
ollie-httpgw -net tcp -addr localhost:9564
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Sessions
|
## Sessions
|
||||||
|
|
|
||||||
Reference in New Issue