znnz-api

Little-Mungbean

znnz-api

Little-Mungbean is a local AI gateway manager for Codex and Claude clients, written in Rust, with provider switching, protocol conversion, and MCP and Skills management.

v1.2
Published at
25d ago
12
Stars
19
Download
Synced at
3d ago

Latest release

v1.2Nov 1, 2026, 09:11 AM
Downloads slow? Switch the source anytime above

README

Project Overview

Little-Mungbean is maintained by znnz-api as the local gateway manager for Codex and Claude clients. It is a Rust and egui desktop app that keeps endpoint addresses and API keys for several providers in one place, while four Agent clients all connect to a local gateway on 127.0.0.1; switching models or providers happens inside the window. Version 1.2.0 is released under Apache-2.0.

Item Value
Platform Windows, macOS (Apple Silicon)
Current version 1.2.0
Stack Rust edition 2024, GUI on eframe 0.35
License Apache-2.0
Installers Little-Mungbean-v1.2-windows.exe, Little.Mungbean-v1.2-macos-arm64.dmg

One local gateway wires four Agent clients to multiple providers.

Key Features

  • Multi-provider management: stores several endpoints and API keys, with rename, drag reorder, and quick switching
  • Independent clients: Codex CLI, Codex Desktop, Claude Code, and Claude Desktop each track install, run, and connection state
  • One-click install: installs all four clients from the interface without a separate terminal
  • Model injection: picks the default model list or the gateway model list per client and writes provider models into the client picker
  • Model hiding: fetches provider model lists and hides old or rarely used entries per provider
  • Account mode switch: toggles between the local gateway and the client's official account without signing out, restoring the original settings on return
  • MCP management: adds MCP servers manually or from the market, with edit, search, enable, disable, remove, and reuse across clients
  • Skills management: imports directories or ZIP archives, with edit, enable, disable, remove, and reuse across clients
  • Usage statistics: counts requests and tokens per provider and stores them in a local SQLite database

Clients and Protocol Conversion

  • Four wire protocols: OpenAI Chat Completions, OpenAI Responses, Anthropic Messages, and Gemini GenerateContent
  • Bidirectional conversion: converts requests and responses including streaming, forwarding same-family models directly when possible
  • Hot toggle: protocol conversion can be switched without restarting the client
  • Typical cases: Claude or Gemini models inside Codex, and GPT or Grok models inside Claude
  • When to leave it off: providers that already convert on the server would convert twice, and Grok speaks Responses natively
  • Connection details: right-click a client card to copy the current Base URL and Token for other tools

Interface and Operation

  • Client cards: the status light separates not installed, not running, running but disconnected, and connected
  • Start and restart: start and connect brings up the gateway, restart and connect reloads settings after an endpoint or key change
  • Tray residency: closing the window only hides it, the gateway keeps running in the tray until exit is chosen
  • Request log: records Agent, provider, model, status code, tokens, elapsed time, time to first token, and conversion details
  • Native context menus: input fields support undo, redo, cut, copy, paste, and select all

Target Audience

  • Developers using both Codex and Claude
  • Users juggling several model providers
  • Teams standardising MCP servers
  • Advanced users watching token spend
  • Developers running a gateway on a private network

Quick Start

  1. Run the installer, then enter an endpoint and API key on first launch or pick a provider preset
  2. Click fetch models and tick the models to inject into the client
  3. Select a client and click start and connect, which restarts that client and writes its configuration
  4. To change providers, edit the endpoint or key and click restart and connect
  5. To reuse the gateway elsewhere, right-click the client card and copy the Base URL and Token
  6. For scripted checks, run little-mungbean diagnose, which only reads configuration and never prints a full key

System Requirements

Item Requirement Notes
OS Windows Ships Little-Mungbean-v1.2-windows.exe
OS macOS (Apple Silicon) Ships Little.Mungbean-v1.2-macos-arm64.dmg
Data directory %LOCALAPPDATA%/Little-Mungbean or the same folder under the macOS user data directory Usage database is usage.sqlite3
Network Reachable providers, MCP registry, and Skills market System proxy and HTTP_PROXY style variables are supported

Notes

  • Loopback only: the gateway binds 127.0.0.1 on a random port, so other devices on the LAN cannot reach it
  • Exit to stop: closing the window keeps the gateway alive and clients keep using it, only exit from the tray disconnects
  • Restart after changes: an endpoint or key change needs restart and connect, otherwise the client keeps the old configuration
  • Proxy takes over settings: HTTP_PROXY, HTTPS_PROXY, ALL_PROXY, and NO_PROXY override the system proxy, and a proxy change needs a reconnect
  • Keep conversion off when unneeded: with server-side conversion or same-family models, local conversion would run twice

Release history

Sort