Unverified50% confidenceCautionExact time
You should never write an API Key directly into code; instead put it in a .env file and read it with python-dotenv, and when using Git, add .env to .gitignore.
1
Sources
50%
Confidence
Long-term
Relevance
11/1/2026
First Seen
Sources
Build an AI Agent from Scratch with ~100 Lines of Python, No Framework Needed
youtubeBeyond The Star Life10/29/2026
Related Entities
Related Claims
UnverifiedFull credentials should not be pasted into chat windows or hard-coded into project code; they should be stored in a keychain or written to a .env file excluded by .gitignore.75% similarUnverifiedWhen reading source files, only documents are read; .env and secret files are never opened, and the characters see the brief rather than the user's code.65% similarUnverifiedThe .env file is usually gitignored and is not automatically carried over when a worktree is created, which may cause an agent to read wrong default values or fail to start.64% similarUnverifiedIn the OpenCode official documentation, both the .env protection example and the company.guard example register an execute.before hook only for the read tool, and do not intercept the behavior of reading files via shell commands (such as cat).62% similarUnverifiedIn the tool.call hook, any read or edit operation on .env, keystore and .p8 files is intercepted.58% similar
Cite This Claim
Stable URI
https://kongchang.com/claim/1122516API
curl https://kongchang.com/api/v1/knowledge/claims/1122516MCP
get_claim(id=1122516)