Sugar#
Sugar is a self-hosted, OpenAI-compatible gateway for coding models. It gives a small trusted group one API surface, revocable member keys, usage limits and a deterministic router called Conduit.
Conduit can select among Kimi, GLM, DeepSeek and MiniMax families, while direct model routes support other configured providers. Operator-owned supply policy places prepaid or local lanes before metered fallbacks and records the route used for each request.
What Sugar provides#
- OpenAI-style models, chat completions, responses and embeddings routes.
- Streaming responses and normalised usage.
- Invite-only browser access and revocable
sgr_live_API keys. - Workspace, member and per-key limits.
- Encrypted provider credentials and persistent SQLite state.
- Provider health, discovery, failover and request accounting.
- Managed Local Ollama and a narrow compatible-endpoint option.
Sugar does not execute coding tools or own a user's project. Clients such as PacketCode remain responsible for files, commands and approvals.
Sugar is alpha software. Use one persistent service instance, maintain tested backups and pin the source or release used by clients.