sk

Security Guide for AI Agents and ML Workflows

This guide explains practical safeguards when using sk in AI-agent, automation, and ML environments.

Why sk helps

Threats to account for

Secure usage principles

  1. Store credential once: sk add -k OPENAI_API_KEY --stdin --force
  2. Read only where needed: export OPENAI_API_KEY="$(sk get -k OPENAI_API_KEY)"
  3. Clear shell/session variables after use.
  4. Rotate and re-store keys on a fixed cadence.

References