@averyyy/pi-server
v0.80.7-piclient.1
Published
Proxy server for pi-client that stores session state and forwards incremental requests to upstream LLM providers
Readme
@averyyy/pi-server
Server for @averyyy/pi-client. It stores session state and forwards client requests to upstream model providers.
Install
npm i -g @averyyy/pi-serverStart
pi-serverBy default it listens on http://127.0.0.1:4217 and stores sessions under .pi/pi-server/sessions in the current directory.
Configure
Set provider keys in the server environment, then start the server:
OPENAI_API_KEY=your-key pi-serverUseful server settings:
PI_SERVER_HOST=127.0.0.1
PI_SERVER_PORT=4217
PI_SERVER_AUTH_TOKEN=your-token
PI_SERVER_SESSION_STORE_DIR=/path/to/sessions
PI_SERVER_UPLOAD_DIR=/path/to/upload_filesReceived files default to ~/.pi/upload_files.
Connect A Client
PI_SERVER_URL=http://127.0.0.1:4217 pi-clientWith auth:
PI_SERVER_AUTH_TOKEN=your-token PI_SERVER_URL=http://127.0.0.1:4217 pi-client