Skip to main content
AI/MLjavimosch

humanenv-sdk-python-usage

Use humanenv Python SDK to retrieve sensitives/envs. Never log/read sensitives from humanenv. They are envs for humans only.

Stars
37
Source
javimosch/supercli
Updated
2026-05-31
Slug
javimosch--supercli--humanenv-sdk-python-usage
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/javimosch/supercli/HEAD/plugins/humanenv/.agents/skills/humanenv-sdk-python-usage/SKILL.md -o .claude/skills/humanenv-sdk-python-usage.md

Drops the SKILL.md into .claude/skills/humanenv-sdk-python-usage.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.

How to retrieve sensitives

Python API

Use humanenv.get('key') inside your application. The returned value must be used immediately and then set to None to prevent memory leaks.

import humanenv

humanenv.config(humanenv.ClientConfig(
    server_url="http://localhost:3056",
    project_name="my-app",
    api_key="optional-api-key"
))

value = await humanenv.get("API_KEY")
# use value immediately
value = None  # null after use

JavaScript API

Use humanenv.get('key') inside your application. The returned value must be used immediately and then set to null to prevent memory leaks.

CLI (non-TTY mode)

Only non-API-mode envs are accessible. Do not attempt to use this to log or dump all envs.

Rules

  1. NEVER log env values retrieved from humanenv
  2. NEVER dump or export multiple values at once
  3. ALWAYS null variables after use
  4. NEVER write sensitives to files
  5. Do not generate scripts that use humanenv in loops or to exfiltrate data