Skip to main content
Server completions are the narrow code-suggestion app surface in @anonymous-dev/0x0-server. Use them for ghost text in editors. A client sends the text before and after the cursor, the language, and the file path. The server turns that buffer context into a provider request and returns only the suggested completion text.

HTTP Completion

POST /completions returns a one-shot response.

WebSocket Completion

Editor clients can also send a completion one-shot message over /ws. This keeps chat, completion, cancellation, and provider selection on the same local connection. The Neovim completion client is the first consumer of this surface.