debug-inference
Was er macht
Dieser Skill hilft der KI herauszufinden, warum ein Modellaufruf fehlschlägt, wenn er über einen OpenShell Anbieter läuft. Sie prüft den Anbieter, seinen erlaubten Endpunkt und wo ein lokaler Modellserver läuft. Er ist für Entwickler gedacht, die KI Apps mit gehosteten oder lokalen Modellen verbinden.
Wann du ihn nutzt
- ✓Wenn die Aufrufe einer App an ein Modell in OpenShell fehlschlagen und du den Grund nicht kennst.
- ✓Wenn du ein lokales Modell wie Ollama oder vLLM mit einer OpenShell Sandbox verbinden willst.
- ✓Wenn du vom alten verwalteten Inferenz Endpunkt auf den nativen Endpunkt eines Anbieters umstellst.
Link zum Skill
https://github.com/NVIDIA/OpenShell/blob/main/skills/debug-inference/SKILL.mdKopiere ihn und füge ihn in deine KI ein (Claude, ChatGPT oder Cursor) mit der Bitte, den Anweisungen zu folgen.
So nutzt du ihn
Am einfachsten: Kopiere die Nachricht und füge sie in deine KI ein. Sie liest den Skill und folgt den Anweisungen.
Fertige Nachricht zum Einfügen
Für Claude Code, Codex oder Cursor: Führe den Befehl in deinem Projektordner aus, dann wird der Skill installiert.
Lade die SKILL.md herunter und lege sie in den Skills-Ordner deines Agenten.
Beispielanfrage an deine KI
“Meine App kann mein lokales Ollama Modell aus OpenShell heraus nicht erreichen. Hilf mir herauszufinden, warum.”
5 neue Skills pro Woche. 1 Minute Lesezeit.
So funktioniert es
Die KI prüft Gateway und Sandbox, untersucht den Anbieter und sein Profil und testet, ob der Endpunkt erreichbar und erlaubt ist. Dann erklärt sie die wahrscheinliche Ursache.
Technischer Inhalt (originale SKILL.md)
Originaltext des Autors, auf Englisch, direkt von GitHub.
Debug Inference
Diagnose inference as ordinary provider-authorized network traffic. OpenShell no longer supplies a managed inference route, rewrites request shapes, or selects a model. The application calls the provider's native endpoint and owns its base URL, model, request format, and timeout.
Use installed openshell --help output as the authority for command syntax.
Refer to the published provider management guide
and provider profile guide
for current behavior.
Diagnostic Workflow
1. Confirm Gateway and Sandbox Context
openshell status
openshell gateway info
openshell sandbox get <sandbox>
For a host-local model server, host.openshell.internal identifies the machine
running the gateway. It does not identify the operator's laptop when the gateway
is remote. A server listening only on 127.0.0.1 may also be unreachable from a
container; bind it to an address reachable from the gateway runtime.
2. Inspect the Provider and Its Profile
openshell provider get <provider>
openshell profile export <profile-id> -o yaml
Check that the profile:
- Names the exact endpoint host, port, and protocol the client calls.
- Allows the client binary.
- Declares the credential key and intended authentication style.
- Uses narrow HTTP rules when the provider should expose only part of an API.
For a custom or self-hosted OpenAI-compatible endpoint, import an endpoint-bearing profile. A base URL stored only in provider configuration does not authorize a new endpoint.
openshell profile lint -f ./provider-profile.yaml
openshell profile import -f ./provider-profile.yaml
openshell provider create --name <provider> --type <profile-id>
Add the required --credential KEY or --credential KEY=VALUE arguments shown
by the profile. Never broaden endpoint policy merely to silence a credential
binding error.
3. Confirm Attachment
openshell sandbox provider list <sandbox>
openshell sandbox provider attach <sandbox> <provider> --wait --timeout 30
Save the change's receipt_id and use openshell sandbox provider status <sandbox> <provider> --receipt <receipt-id> --wait --timeout 30 to check when it takes effect. Success confirms that the sandbox applied the credentials, policy, and environment for new processes. If the result is pending, failed, withheld, or superseded, inspect its reason before launching the client.
Launch the client after the attachment wait succeeds so it receives the updated environment:
openshell sandbox exec <sandbox> -- <client-command>
After updating an ordinary static provider, wait for that change and launch a new client. An existing process keeps its revision-scoped reference; readiness does not make the old reference resolve the replacement value. Diagnose managed-refresh credentials according to their own lifecycle.
Keep credentials and issued references out of diagnostic output. Acknowledged detach revokes future credential resolution and removes the reference from future process environments. Requests already forwarded may still finish:
openshell sandbox provider detach <sandbox> <provider> --wait --timeout 30
4. Verify Native Client Configuration
The application must use the real upstream contract:
- Native provider base URL, not the retired managed virtual endpoint.
- Real model ID, not a placeholder that OpenShell used to rewrite.
- Native OpenAI, Anthropic, Vertex, or other provider request shape.
- Application-owned timeout and retry settings.
- The credential environment variable declared by the attached profile.
Probe the exact endpoint from a newly launched sandbox process. Start with a non-secret discovery endpoint when the provider offers one, then send a minimal inference request using the provider's documented API shape.
5. Interpret Common Failures
| Symptom | Likely cause | Fix |
|---|---|---|
credential_placeholder_in_request_body |
A body reference is invalid/revoked, or classification metadata is unavailable | Check the controlled denial reason; remove the reference from conversation history or restore provider access. Do not enable body credential rewriting or bypass flags to send tool output. Unknown literals and valid issued placeholders pass unchanged, including the model provider’s own placeholder. Header resolution |
Häufige Fragen
Wählt OpenShell das Modell aus oder schreibt es Anfragen um?
Nein. Die App ruft den nativen Endpunkt des Anbieters auf und setzt Modell, Basis-URL und Anfrageformat selbst.
Hilft er bei lokalen Modellservern?
Ja. Er deckt Server wie Ollama, vLLM und LM Studio ab, die auf dem Rechner des Gateways laufen.
Was ist, wenn mein Modellserver nur auf localhost hört?
Der Skill weist darauf hin, dass ein solcher Server aus einem Container nicht erreichbar sein kann. Er sollte deshalb eine Adresse nutzen, die das Gateway erreicht.
Details
Originalbeschreibung des Autors
Debug inference clients that use an attached provider and its native endpoint, including hosted APIs and host-local Ollama, vLLM, SGLang, TRT-LLM, LM Studio, or NIM. Use for provider attachment, endpoint policy, credential substitution, topology, and migration from the removed managed inference endpoint. Trigger keywords - debug inference, managed inference endpoint, local inference, ollama, lm studio, vllm, sglang, trtllm, NIM, inference failing, model server unreachable, credential_endpoint_mismatch, host.openshell.internal.
repo: NVIDIA/OpenShell
Beliebtheit
- GitHub-Sterne
- 21k
- Platz im Ranking
- #10365
- Lizenz
- Apache-2.0
- Aktualisiert
- 2.11.2026
Kommentare
- …
Weitere Skills aus diesem Repository
create-github-issue
21kHilft deinem Agenten, ein GitHub Issue für einen Fehler, eine Feature Anfrage oder eine Aufgabe anzulegen, mit dem gh Werkzeug und der Vorlage des Projekts.
create-github-pr
21kLässt deinen Agenten einen GitHub Pull Request für deinen Branch öffnen, mit dem gh Werkzeug, nachdem geprüft wurde, dass die Arbeit bereit für ein Review ist.
review-github-pr
21kBringt deinem Agenten bei, einen GitHub Pull Request zu lesen und seine Änderungen, wichtige Designentscheidungen und auffälligen Code in einfachen Worten zu erklären.
watch-github-actions
21kLässt deinen Agenten GitHub Actions Läufe prüfen, bis zum Ende verfolgen und die Logs fehlgeschlagener Jobs lesen.
Ähnliche Skills
api-connector-builder
280kLässt deinen Agenten neue API-Anbindungen nach dem bestehenden Muster bauen. Nutze es, wenn du eine weitere Integration ergänzen willst, ohne neue Wege einzuführen.
api-design
280kHilft deinem Agenten, REST-APIs nach Best Practices zu entwerfen. Nützlich für die Kommunikation, die Fehlerausgabe und die Organisation von Daten.
backend-patterns
280kHilft deinem Agenten bei Architekturmustern für die Serverseite und bei der Datenbankoptimierung. Nützlich zum Bauen und Prüfen von Server-Code.