`sbx secret set mistral` is not picked up by docker-agent running in sbx (custom secret required)
I maintainer di solito rispondono entro 1 giorno
@dgageot ci sta già lavorando.
Dal 21/10/2026.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 62/100
Direzione di ricerca
Start by tracing how docker-agent obtains built-in provider credentials for models, then compare the Mistral path with providers that work. The issue names no source files or tests, so first locate the credential handling and its coverage. Done when sbx secret set mistral supplies the key to a Mistral agent without the custom-secret workaround.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
When running docker-agent inside an sbx sandbox with a Mistral model, the built-in secret stored with sbx secret set mistral is not used. Requests to the Mistral API fail, and the only way I found to make it work is to create a custom secret.
model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Expected Behavior
Use the Mistral built-in service: https://docs.docker.com/ai/sandboxes/configuration/credentials/#built-in-services.
sbx secret set mistral should work out of the box with docker-agent, as it does for other providers.
Actual Behavior
See Description section
Steps to Reproduce
- Store the key as a built-in secret:
sbx secret set mistral - Run an agent that uses a Mistral model:
sbx run docker-agent -- run agent.yaml - The Mistral API key is not found or injected.
Docker Agent version
v1.142.0 and v1.151.0 (the one linked to sbx 0.48.0)
OS & terminal
macOS (but running on Linux because with sbx)
Model used
ministral-3b-2512
Error output
model failed: error receiving from stream: HTTP 401: POST
"https://api.mistral.ai/v1/chat/completions": 401 Unauthorized {"detail":"Invalid API
Key"}
Screenshots
No response
Additional context
Workaround
sbx secret set-custom --host api.mistral.ai --env MISTRAL_API_KEY \
--placeholder sbx-mistral-key --value "$MISTRAL_API_KEY"
sbx run -e MISTRAL_API_KEY=sbx-mistral-key -e DOCKER_AGENT_AUTO_UPDATE=0 \
docker-agent -- run agent.yaml --theme default-light
- Lingua principale
- Go
- Stelle
- 4.7k
- Fork
- 565
- Merge medio
- 18h 52m
- PR unite (30g)
- 221
Preparare l'ambiente
Avvia il container di sviluppo del progetto nel browser, con il tuo account GitHub.
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Nessuna guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di docker/docker-agent
-
edit_file diff rendering panics on invalid UTF-8 textForse già presa @TDnorthgarden l’ha presa oggi. Apertaarea/tui
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
docker/docker-agent#4955 ·
I maintainer di solito rispondono entro 1 giorno
-
A setting to turn off the models.dev catalog download (offline and strict-network use)Forse già presa @3431481073 l’ha presa 19 giorni fa. Apertaarea/config area/models
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
docker/docker-agent#4714 ·
I maintainer di solito rispondono entro 1 giorno
-
Error when trying to run sandbox example?Forse già presa @dgageot l’ha presa 28 giorni fa. Apertaarea/cli
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
docker/docker-agent#4672 · 1 commento · 1 reazione · 1 assegnatario ·
I maintainer di solito rispondono entro 1 giorno
-
`edit_file` silently edits the first match when `oldText` occurs more than onceForse già presa @dwin-gharibi l’ha presa 103 giorni fa. Apertaarea/tools
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
docker/docker-agent#3929 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
area/api area/runtime
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
docker/docker-agent#4951 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di docker/docker-agent
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 86/100
fluxcd/notification-controller#1441 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
OneBusAway/maglev#2145 ·
I maintainer di solito rispondono entro 2 giorni
-
priority/medium status/ready type/chore
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
discobox-ai/discobox#1357 ·
I maintainer di solito rispondono entro 1 giorno
-
TestPseudoLocaleRemote fails now and then: it types the code before the laptop asks for itForse già presa @fzn0x l’ha presa oggi. Apertabug priority: low
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement ui/ux
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
jbigler/railswitch#243 ·
I maintainer di solito rispondono entro 1 giorno