Repository navigation
OpenAI Gateway
Updated: 2026-09-29
tools/forge_openai_proxy.py — service NokidoOpenAIProxy, port 7777. Expose
/v1/chat/completions + /v1/models OpenAI-compatibles, en façade du hub Nokido.
client CLI → POST /v1/chat/completions
→ SemanticFirewall.pre_flight (ring 3)
DLP redact → safe_task ; injection / ring → HTTP 403 firewall_blocked
→ hub ask (routeur LLM local/cloud)
→ SemanticFirewall.post_flight
SSRF / canary leak / hallucination → HTTP 502 firewall_post_blocked
→ restore (placeholders DLP → originaux)
→ réponse OpenAI ChatCompletion
Non-stream et pseudo-stream (le « stream » récupère la réponse complète puis la
découpe → post_flight possible). Best-effort : si le module firewall est indisponible,
le gateway logue + dégrade (ne brick pas). Budget/quota cloud : géré en aval (routeur).
Ne PAS intégrer shell_gpt / simonw-llm / aichat comme backends (dupliquerait
routeur/RAG/providers/firewall). Les brancher sur http://127.0.0.1:7777/v1 :
shell_gpt — ~/.config/shell_gpt/.sgptrc
API_BASE_URL=http://127.0.0.1:7777/v1
OPENAI_API_KEY=laforge-local
DEFAULT_MODEL=laforge-cascade
simonw/llm — extra-openai-models.yaml
- model_id: nokido
model_name: laforge-cascade
api_base: http://127.0.0.1:7777/v1aichat — ~/.config/aichat/config.yaml
clients:
- type: openai-compatible
name: nokido
api_base: http://127.0.0.1:7777/v1
api_key: laforge-local
models: [{ name: laforge-cascade }]Détails : docs/llm_cli_frontends.md.
- simonw/llm : modèle de plugins + log SQLite prompt/réponse.
- shell_gpt : UX NL→shell côté terminal user.
- aichat : rien (serveur OpenAI-compat redondant avec ce gateway).
tests/test_forge_openai_proxy_firewall.py — pre 403 / post 502 / restore / stream block.
/v1/models : timeout observé (endpoint lent côté hub) — à investiguer si utilisé.
Nokido-labs/nokido · AGPL-3.0 (licence commerciale disponible) · wiki genere depuis docs/wiki de v0.20.12 (5fbcdc8) — corrections : ouvrir une issue ou une PR sur le depot.
Nokido
English
- 01 — Installation
- 02 — Quick Start
- 03 — Architecture overview
- 04 — MCP clients setup
- 05 — LLM providers
- 06 — Hub API reference
- 07 — Security model
- 08 — Vault & secrets
- 09 — TUI reference
- 10 — Docker profiles
- 11 — Cross-OS notes
- 12 — AMI cognitive stack
- 13 — Hardware roadmap
- 14 — Troubleshooting
- 15 — Glossary
- 16 — FAQ
- 17 — First launch
- 18 — Launchers & service files
- 19 — Knowledge Pack
- 20 — Modules Reference
- 21 — SSoT Cross-CLI
- 22 — Governance, cognition & self-safety
- 23 — Orchestration & Workflows
- 24 — Cloud peers (claude.ai, ChatGPT)
- OpenAI Gateway souverain
- Nokido — Wiki
- SearXNG Keeper
- Web Egress Gateway —
:7779
Français
- Accueil
- 01 — Installation
- 02 — Démarrage rapide
- 03 — Aperçu architecture
- 04 — Configuration clients MCP
- 05 — Providers LLM
- 06 — Référence API hub
- 07 — Modèle de sécurité
- 08 — Vault & secrets
- 09 — Référence TUI
- 10 — Profils Docker
- 11 — Notes multi-OS
- 12 — Pile cognitive AMI
- 13 — Roadmap matérielle
- 14 — Troubleshooting
- 15 — Glossaire
- 16 — FAQ
- 17 — Premier lancement
- 18 — Lanceurs & fichiers services
- 19 — Knowledge Pack
- 20 — Référence des modules
- 21 — SSoT Cross-CLI
- 22 — Gouvernance, cognition & auto-sûreté
- 23 — Orchestration & workflows
- 24 — Pairs cloud (claude.ai, ChatGPT)