{
  "schema_version": "1.0",
  "publisher": "AI Release",
  "article": {
    "title": "How to Store LLM API Keys Safely: .env, Secret Managers and Proxies",
    "canonical_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
    "language": "en",
    "article_type": "guide",
    "published_at": null,
    "updated_at": "2026-11-22T00:00:00+00:00"
  },
  "summary": "Time to complete: 45 minutes Difficulty: Intermediate (you need to be comfortable with a terminal and environment variables)",
  "topics": [
    "как хранить api ключ безопасно",
    "где хранить api key openai",
    "менеджер секретов для LLM",
    "ротация api ключей",
    "прокси для api ключей"
  ],
  "entities": [
    {
      "id": "E1",
      "name": "как хранить api ключ безопасно",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E2",
      "name": "где хранить api key openai",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E3",
      "name": "менеджер секретов для LLM",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E4",
      "name": "ротация api ключей",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E5",
      "name": "прокси для api ключей",
      "type": "тема/инструмент",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E6",
      "name": "Windows",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E7",
      "name": "Linux",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E8",
      "name": "macOS",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E9",
      "name": "GitHub",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    },
    {
      "id": "E10",
      "name": "Python",
      "type": "платформа/технология",
      "description": "упоминается в заголовке, TL;DR или разделах гайда",
      "url": null
    }
  ],
  "claims": [
    {
      "id": "AR-GUIDE-KAKBEZOPAS-001",
      "statement": "Time to complete: 45 minutes",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Time to complete: 45 minutes"
    },
    {
      "id": "AR-GUIDE-KAKBEZOPAS-002",
      "statement": "Difficulty: Intermediate (you need to be comfortable with a terminal and environment variables)",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "Difficulty: Intermediate (you need to be comfortable with a terminal and environment variables)"
    },
    {
      "id": "AR-GUIDE-KAKBEZOPAS-003",
      "statement": "You will need: a Linux/macOS shell or Windows PowerShell, git, Python 3 with venv and pip, a text editor, an LLM API key from your provider's dashboard, and the Python packages python-dotenv, fastapi, uvicorn, httpx (install without pinning versions; check the documentation for the current release numbers)",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#tldr",
      "evidence_excerpt": "You will need: a Linux/macOS shell or Windows PowerShell, git, Python 3 with venv and pip, a text editor, an LLM API key from your provider's dashboard, and the Python packages python-dotenv, fastapi, uvicorn, httpx (install without pinning versions; check the documentation for the current release numbers)"
    },
    {
      "id": "AR-GUIDE-KAKBEZOPAS-004",
      "statement": "Operating system: Linux, macOS, or Windows. The commands below are bash; PowerShell equivalents are noted where they differ.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "Operating system: Linux, macOS, or Windows. The commands below are bash; PowerShell equivalents are noted where they differ."
    },
    {
      "id": "AR-GUIDE-KAKBEZOPAS-005",
      "statement": "python3 --version must print a Python 3 version. python3 -m venv --help must not error — that confirms the venv module is installed.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "python3 --version must print a Python 3 version. python3 -m venv --help must not error — that confirms the venv module is installed."
    },
    {
      "id": "AR-GUIDE-KAKBEZOPAS-006",
      "statement": "git --version must print a version. If it errors, install Git from your package manager.",
      "claim_type": "guide_fact",
      "confidence": "not_assessed",
      "source_type": "заявление источника",
      "verification_status": "reported_unverified",
      "source_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
      "article_anchor": "#requirements",
      "evidence_excerpt": "git --version must print a version. If it errors, install Git from your package manager."
    }
  ],
  "relationships": [
    {
      "subject": "Guide",
      "predicate": "describes",
      "object": "How to Store LLM API Keys Safely: .env, Secret Managers and Proxies",
      "claim_id": "AR-GUIDE-KAKBEZOPAS-001"
    },
    {
      "subject": "Guide",
      "predicate": "includes step",
      "object": "Step 1. Keep the key in a .env file and out of Git",
      "claim_id": "AR-GUIDE-KAKBEZOPAS-001"
    }
  ],
  "questions_and_answers": [
    {
      "question": "What is required?",
      "answer": "Operating system: Linux, macOS, or Windows. The commands below are bash; PowerShell equivalents are noted where they differ.; python3 --version must print a Python 3 version. python3 -m venv --help must not error — that confirms the venv module is installed.; git --version must print a version. If it errors, install…",
      "claim_ids": [
        "AR-GUIDE-KAKBEZOPAS-003"
      ],
      "article_anchor": "#requirements"
    },
    {
      "question": "How to do it?",
      "answer": "Step 1. Keep the key in a .env file and out of Git → Step 2. Move the key behind a secret manager and a server-side proxy → Step 3. Verify the key never leaks, then rotate it",
      "claim_ids": [
        "AR-GUIDE-KAKBEZOPAS-004"
      ],
      "article_anchor": "#step-1"
    },
    {
      "question": "Which topics does it cover?",
      "answer": "как хранить api ключ безопасно, где хранить api key openai, менеджер секретов для LLM, ротация api ключей, прокси для api ключей",
      "claim_ids": [
        "AR-GUIDE-KAKBEZOPAS-002"
      ],
      "article_anchor": "#entities"
    },
    {
      "question": "What are the key points?",
      "answer": "Time to complete: 45 minutes Difficulty: Intermediate (you need to be comfortable with a terminal and environment variables)",
      "claim_ids": [
        "AR-GUIDE-KAKBEZOPAS-007"
      ],
      "article_anchor": "#tldr"
    }
  ],
  "limitations": [
    "Current versions, prices and limits.",
    "Independent benchmarks and quality checks.",
    "Terms of use and data policy."
  ],
  "citation": {
    "preferred_citation": "AI Release. Как безопасно хранить API-ключи для LLM-сервисов: .env, менеджеры секретов и прокси. https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
    "canonical_url": "https://ai-release.org/guides/kak-bezopasno-hranit-api-klyuchi-dlya-llm-servisov-env_en.html",
    "publisher": "AI Release"
  }
}