Headless gRPC Server¶
SOCC can run as a headless gRPC service for other applications, automation pipelines, or custom user interfaces.
Start the Server¶
Run the core engine as a gRPC service on localhost:50051:
npm run dev:grpc
Configuration¶
Variable |
Default |
Description |
|---|---|---|
|
|
Port the gRPC server listens on |
|
|
Bind address; use |
Run the Test CLI Client¶
In a separate terminal:
npm run dev:grpc:cli
The test client renders streamed tokens, tool activity, and permission prompts over the gRPC transport.
Protocol Source¶
The active protocol definition lives in:
src/proto/socc.proto
Typical Use Cases¶
embedding SOCC in an internal analyst UI
integrating the runtime into CI or orchestration pipelines
running a controlled terminal proxy from another application
Operational Notes¶
Keep the server bound to localhost unless you have an explicit auth and network story
Treat bidirectional streaming and tool approvals as part of the trust boundary
Validate provider credentials and runtime diagnostics before exposing the server to real workloads