Przejdź do treści
Biblioteka skilli
AI i agenci · Automatyzacja

env-vars

/env-vars

Ustawia zmienne środowiskowe i klucze API w piaskownicy dla narzędzi i skryptów uruchamianych przez agenta.

Repozytorium
open-duet ↗
Licencja
MIT
Ostatnia zmiana repozytorium
30.10.2026

Ocena i bezpieczeństwo

100/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść35 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
1
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 30.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Ustawia zmienne środowiskowe i klucze API w piaskownicy dla narzędzi i skryptów uruchamianych przez agenta.

Oryginalny opis (EN)

Manage environment variables and API keys in the sandbox. Use when the user asks to set, update, or manage environment variables, API keys, secrets, or credentials, or when you need to configure API keys or secrets for tools, scripts, or services you are running.

Jak działa

  1. How It Works
  2. Setting Environment Variables
  3. Format
  4. Loading Updated Variables
  5. Pre-configured Variables
  6. Best Practices
Sekcje z nagłówków SKILL.md, w oryginale · 75 linii, 379 słów
Podgląd SKILL.md
---
name: env-vars
target: sandbox
description: Manage environment variables and API keys in the sandbox. Use when the user asks to set, update, or manage environment variables, API keys, secrets, or credentials, or when you need to configure API keys or secrets for tools, scripts, or services you are running.
---

# Environment Variables & API Keys

Environment variables in the sandbox are managed through a `.env` file located in the home directory:

```
~/.env
```

## How It Works

The `.env` file is automatically sourced into the environment for all processes running in the sandbox, including the gateway, runners, and any shell commands you execute. Any variables you add or change will be picked up automatically.

## Setting Environment Variables

Edit `~/.env` directly to add or update variables:

```bash
# Open the file for editing
echo 'MY_API_KEY=sk-abc123' >> ~/.env
```

Or use a more precise approach to avoid duplicates:

```bash
# Check if the variable already exists
grep -q '^MY_API_KEY=' ~/.env 2>/dev/null && \
  sed -i 's/^MY_API_KEY=.*/MY_API_KEY=sk-abc123/' ~/.env || \
  echo 'MY_API_KEY=sk-abc123' >> ~/.env
```

## Format

The file uses standard dotenv format — one `KEY=VALUE` pair per line:

```
OPENAI_API_KEY=sk-...
ANTHROPIC_API_KEY=sk-ant-...
DATABASE_URL=postgresql://user:pass@host:5432/db
MY_CUSTOM_VAR=some_value
```

- Comments (lines starting with `#`) and blank lines are preserved.
- Do not quote values unless quotes are part of the value itself.

## Loading Updated Variables

After editing `~/.env`, new shell sessions will pick up the changes automatically. To apply changes in the current shell session, source the file:

```bash
set -a && source ~/.env && set +a
```

## Pre-configured Variables

The following variables are pre-configured and available by default:

| Variable                | Description                                                          |
| ----------------------- | -------------------------------------------------------------------- |
| `DUET_API_KEY`          | Workspace API key used by Duet services and the model gateway        |
| `DUET_API_URL`          | Base URL for Duet's public API and service proxies                   |
| `DUET_GATEWAY_BASE_URL` | Base URL for the workspace's Duet model gateway                      |
| `FIRECRAWL_API_URL`     | Firecrawl-compatible alias for Duet's Firecrawl service proxy        |
| `FIRECRAWL_API_KEY`     | Firecrawl-compatible alias whose value is the workspace Duet API key |

Do **not** remove or overwrite these variables. The gateway injects them into
runner processes and refreshes them as system-managed workspace credentials.

## Best Practices

- **Never hardcode secrets** in source files. Always store them in `~/.env` and read from the environment at runtime.
- **Use descriptive names** for variables, e.g. `STRIPE_SECRET_KEY` rather than `KEY`.
- **Check before overwriting** — read the existing `.env` to avoid accidentally removing other variables.
- When a user provides an API key, add it to `~/.env` so it persists across sessions.

Wersje

RepozytoriumWynikLicencja
Ta strona · aomni-com/open-duet100MIT
vercel/vercel-plugin100Apache-2.0

Migawka bazy z 13.11.2026 · wersja paczki 7467f3b715a3 (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

  • 100render-env-vars
    Konfiguruje na Render zmienne środowiskowe, sekrety i grupy env, w tym generateValue i sync: false, oraz diagnozuje brakujące lub błędne wartości w Blueprint i Dashboardzie.
  • 100env-manager
    Zarządza zmiennymi środowiskowymi i sekretami w środowiskach development, staging i produkcji: audyt, synchronizacja, wykrywanie braków i rotacja poświadczeń.
  • 100launch-sync-environment-variables-from-env-example
    Porównuje zmienne środowiskowe projektu Contentstack Launch z lokalnym plikiem .env.example i uzupełnia w środowisku brakujące klucze.
  • 100output-credentials-env-vars
    Podłącza zaszyfrowane poświadczenia do zmiennych środowiskowych konwencją credential:, na przykład klucze dostawców LLM ANTHROPIC_API_KEY i OPENAI_API_KEY.
  • 95env-manager
    Zapisuje, wyszukuje i usuwa zmienne środowiskowe i klucze API użytkownika, które mają trwać między sesjami.
  • 100env-setup-wizard
    Pomaga konfigurować zmienne środowiskowe, pliki .env i zarządzanie konfiguracją aplikacji.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.