debug-inference
O que ela faz
Esta skill ajuda a IA a descobrir por que uma chamada a um modelo falha quando passa por um provedor do OpenShell. Verifica o provedor, o endpoint permitido e onde roda um servidor de modelo local. É para desenvolvedores que conectam apps de IA a modelos hospedados ou locais.
Quando usar
- ✓Quando as chamadas de um app a um modelo falharem dentro do OpenShell e você não souber o motivo.
- ✓Quando quiser conectar um modelo local, como Ollama ou vLLM, a um sandbox do OpenShell.
- ✓Quando estiver migrando do antigo endpoint de inferência gerenciado para o endpoint nativo de um provedor.
Link da skill
https://github.com/NVIDIA/OpenShell/blob/main/skills/debug-inference/SKILL.mdCopie e cole na sua IA (Claude, ChatGPT ou Cursor) pedindo para seguir as instruções.
Como usar
O jeito mais fácil: copie a mensagem e cole na sua IA. Ela lê a skill e segue as instruções.
Mensagem pronta para colar
Para Claude Code, Codex ou Cursor: rode na pasta do projeto e a skill fica instalada.
Baixe o SKILL.md e coloque na pasta de skills do seu agente.
Exemplo do que pedir para a IA
“Meu app não consegue acessar meu modelo Ollama local de dentro do OpenShell. Me ajude a descobrir por quê.”
5 skills novas por semana. 1 minuto de leitura.
Como funciona
A IA verifica o gateway e o sandbox, inspeciona o provedor e o perfil dele e testa se o endpoint está acessível e permitido. Depois explica a causa provável.
Conteúdo técnico (SKILL.md original)
Texto original do autor, em inglês, direto do 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 |
Perguntas frequentes
O OpenShell escolhe o modelo ou reescreve as requisições?
Não. O app chama o endpoint nativo do provedor e define seu próprio modelo, URL base e formato de requisição.
Ela ajuda com servidores de modelo locais?
Sim. Cobre servidores como Ollama, vLLM e LM Studio que rodam na máquina do gateway.
E se meu servidor de modelo escutar apenas em localhost?
A skill observa que esse servidor pode não ser acessível de dentro de um contêiner, então ele deve escutar em um endereço que o gateway consiga alcançar.
Detalhes
Descrição original do autor
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
Popularidade
- Estrelas no GitHub
- 21 mil
- Posição no ranking
- #10365
- Licença
- Apache-2.0
- Atualizada em
- 02/11/2026
Comentários
- …
Mais skills deste repositório
create-github-issue
21 milAjuda seu agente a criar uma issue no GitHub para um bug, pedido de funcionalidade ou tarefa, usando a ferramenta de linha de comando gh e o template do projeto.
create-github-pr
21 milPermite que seu agente abra um pull request no GitHub para a sua branch com a ferramenta gh, depois de verificar se o trabalho está pronto para revisão.
review-github-pr
21 milEnsina seu agente a ler um pull request do GitHub e explicar as alterações, as principais decisões de design e os trechos de código relevantes em termos simples.
watch-github-actions
21 milPermite que seu agente verifique execuções do GitHub Actions, acompanhe-as até o fim e leia os logs de qualquer job que tenha falhado.
Skills parecidas
api-connector-builder
280 milFaz seu agente construir novas conexões com APIs seguindo o padrão já existente. Use quando precisar adicionar mais uma integração sem criar um novo jeito de fazer.
api-design
280 milAjuda seu agente a projetar APIs REST seguindo as melhores práticas. É útil para definir como as APIs se comunicam, como os erros são mostrados e como organizar os dados.
backend-patterns
280 milAjuda seu agente com padrões de arquitetura do lado do servidor e otimização de banco de dados. É útil para construir ou revisar o código que roda no servidor.