Status: [UNTESTED] Endpoints found: http://127.0.0.1:8787/v1/chat/completions Source: https://github.com/yangs1202/aside-api # aside-api [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Node.js >=18](https://img.shields.io/badge/node-%3E%3D18-green.svg)](https://nodejs.org/) [![Platform: macOS](https://img.shields.io/badge/platform-macOS-lightgrey.svg)](https://www.apple.com/macos/) [![Aside](https://img.shields.io/badge/Aside-Agent-blueviolet.svg)](https://asidehq.com) OpenAI-compatible API proxy for the [Aside](https://asidehq.com) browser agent daemon. Exposes Aside's agent (with full browser automation, file access, and tool use) behind a standard OpenAI API surface, so any OpenAI SDK client can use it without speaking Aside's native tRPC + WebSocket protocols. ## Architecture ```mermaid graph LR Client["OpenAI Client
(Python / JS / curl)"] Proxy["aside-api
:8787"] Daemon["Aside Daemon
:21420"] Browser["Aside Browser
(Chrome CDP)"] Tools["Agent Tools
Files / Bash / Tabs"] Client -->|"POST /v1/chat/completions
OpenAI API"| Proxy Proxy -->|"tRPC: sessions.create
WS: /agents/chat/:id"| Daemon Daemon --> Browser Daemon --> Tools Browser -->|"snapshot / screenshot
openTab / click"| Daemon Tools --> Daemon Daemon -->|"SSE text deltas
+ image inlining"| Proxy Proxy -->|"OpenAI JSON
or SSE stream"| Client style Proxy fill:#4A90D9,color:#fff,stroke:#357ABD style Daemon fill:#7B4DAA,color:#fff,stroke:#5C3A8E style Browser fill:#8BC34A,color:#fff,stroke:#689F38 ``` ### How conversations are stitched ```mermaid flowchart TD Req["Incoming Request"] Check1{"Vendor session id
supplied?"} UseExplicit["Use explicit session"] Check2{"First user message
matches stored hash?"} UseConv["Reuse session
(disk-persisted map)"} Check3{"Same client IP
within 30 min TTL?"} UseIP["Reuse recent session"] NewSession["Create new Aside session
+ browser binding"] Req --> Check1 Check1