auth
/auth
Rejestruje klucz API dostawcy AI na serwerze VPS z bento przez SSH i propaguje go do wszystkich stosów BENTO_MANAGED, obsługując Anthropic, OpenAI, OpenRouter, z.ai, Gemini i endpointy zgodne z OpenAI.
- Autor
- felipefontoura ↗
- Repozytorium
- bento ↗
- Licencja
- MIT
- Ostatnia zmiana repozytorium
- 05.10.2026
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 0
- Adresy URL w SKILL.md
- 0
Brak sygnałów. Repozytorium zmienione 05.10.2026, bez odwołań do wycofanych modeli i API.
MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.
Co robi i kiedy
Rejestruje klucz API dostawcy AI na serwerze VPS z bento przez SSH i propaguje go do wszystkich stosów BENTO_MANAGED, obsługując Anthropic, OpenAI, OpenRouter, z.ai, Gemini i endpointy zgodne z OpenAI.
Wyzwalacze z opisu
Oryginalny opis (EN)
Register an AI-provider API key on a VPS running bento, via SSH, and propagate it to every BENTO_MANAGED stack. Drives bento-auth (Anthropic, OpenAI, OpenRouter, z.ai, Gemini, and any OpenAI-compatible endpoint). Use when the user says "add my OpenAI key", "register an Anthropic key", "set up provider auth on my bento server". NOTE: subscriptions (Claude Pro/Max, ChatGPT Plus) are OUT OF SCOPE — those use each app's native sign-in.
Jak działa
SKILL.md bez nagłówków drugiego poziomu · 77 linii, 475 słów
Podgląd SKILL.md
---
name: auth
description: Register an AI-provider API key on a VPS running bento, via SSH, and propagate it to every BENTO_MANAGED stack. Drives bento-auth (Anthropic, OpenAI, OpenRouter, z.ai, Gemini, and any OpenAI-compatible endpoint). Use when the user says "add my OpenAI key", "register an Anthropic key", "set up provider auth on my bento server". NOTE: subscriptions (Claude Pro/Max, ChatGPT Plus) are OUT OF SCOPE — those use each app's native sign-in.
---
You are handling a secret (an API key) on the user's behalf. **Never echo the
key** into any output, log line, or command you display — keep it out of
narration and out of `BENTO_VERBOSE` traces. All artifacts stay in English.
# When to invoke
- "register my OpenAI / Anthropic / OpenRouter / z.ai / Gemini key on `<host>`"
- "add a provider key to my bento server"
- "wire an OpenAI-compatible endpoint into bento"
This is API KEYS only. If the user wants to use a **subscription**
(Claude Pro/Max, ChatGPT Plus), do NOT use bento-auth — point them at the app's
native sign-in (e.g. `openclaw models auth login --provider openai`, or
paperclip's bundled `claude /login`). bento-auth's old subscription snapshots
went stale in days and were removed.
# Inputs
| Input | Source | Notes |
|---|---|---|
| VPS host + SSH user | user message; default user `root` | reachable via SSH |
| provider | user message | must be a bento-auth catalog id (see below) |
| API key | user message — collect privately, NEVER display it back | |
Discover the valid provider ids from the host itself (don't hardcode):
```bash
ssh "$user@$host" "bash /root/.local/share/bento/scripts/bento-auth --help"
```
# Register — non-interactive over SSH
bento-auth reads the key from stdin (`read -rs`) and honours
`BENTO_AUTH_ASSUME_YES=1` to skip the "store anyway?" prompt on a failed
validation. So you can pipe the key in without a TTY. Read the key into a shell
variable WITHOUT printing it, then:
```bash
# Collect the key into $KEY by whatever private means; do not echo it.
printf '%s\n' "$KEY" | ssh "$user@$host" \
"BENTO_AUTH_ASSUME_YES=1 bash /root/.local/share/bento/scripts/bento-auth <provider>"
unset KEY
```
For an exotic OpenAI-compatible endpoint not in the catalog:
```bash
printf '%s\n' "$KEY" | ssh "$user@$host" \
"BENTO_AUTH_ASSUME_YES=1 bash /root/.local/share/bento/scripts/bento-auth openai-compat <label> <base_url>"
```
bento-auth validates the key (where the catalog defines a validate URL),
persists it to `state.providers.<ENV>`, and runs `auth_propagate_state_providers`
to `docker service update --env-add` it onto every running BENTO_MANAGED stack.
Future deploys inherit it automatically.
If validation fails, bento-auth (with ASSUME_YES) still stores it and prints a
warning — surface that warning to the user so they can re-check the key.
# Verify
```bash
ssh "$user@$host" "bash /root/.local/share/bento/scripts/bento-auth list"
```
This prints registered keys MASKED — safe to show the user. Confirm the
provider's env var appears.
# Report back
- Which provider env var is now set (masked), and that it propagated to managed stacks.
- Which apps consume it: hermes, paperclip, and generic OpenAI-compatible apps
read these env vars. **openclaw does NOT** — it owns its provider config; tell
the user to reference the propagated `${ENV}` in an openclaw custom-provider
definition if they want it there.
- If the user actually needs a subscription, redirect to the app's native sign-in.
Full reference: `docs/reference/bento-auth.md` on the host (and in the repo).
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · felipefontoura/bento | 100 | MIT |
| mixpanel/mixpanel-headless | 100 | MIT |
| microsoft/apm | 100 | MIT |
| microsoft/apm | 100 | MIT |
| EpicenterHQ/epicenter | 100 | MIT |
| tomaspozo/agentlink | 100 | MIT |
| githubnext/apm | 100 | MIT |
| vercel/vercel-plugin | 95 | Apache-2.0 |
| 420company/artemis | 95 | MIT |
Migawka bazy z 28.10.2026 · wersja paczki d8ba8df94774 (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100deploy
Dodaje lub ponownie wdraża stosy aplikacji na VPS z bento przez SSH, uzgadnia stan z Portainerem, weryfikuje każdą aplikację i raportuje adresy URL oraz artefakty startowe. - 100status
Sprawdza tylko do odczytu stan serwera VPS z bento przez SSH: repliki usług Swarm, dostępność HTTPS aplikacji i zasoby hosta. - 100openrouter-install-auth
Konfiguruje uwierzytelnianie API OpenRouter i klucze API przy rozpoczynaniu nowej integracji lub rozwiązywaniu problemów z autoryzacją. - 100sync-model-catalog
Odświeża katalogi modeli Agenta, listy dostawców OpenAI, Anthropic, Codex, Pi i OpenRouter oraz domyślne ustawienia przed wydaniem. - 100api-provider-setup
Dodaje i konfiguruje zewnętrznych dostawców przekaźników API w OpenClaw, w tym własne punkty końcowe modeli zgodne z formatami Anthropic i OpenAI. - 100setup-ssh-keys
Konfiguruje dostęp SSH bez hasła z tego komputera do serwera VPS, żeby skille działały bez nadzoru, także przed pierwszym wdrożeniem.