시작 가이드
manage-env 시작하기
이 가이드를 AI에서 여는 방법
manage-env를 설치하고 AI 코딩 도구에 연결해, 시크릿 값을 채팅에 넣지 않고 저장소의 환경변수를 설정하는 방법을 안내해요.
AI로 시작하기
AI 코딩 도구에는 프롬프트 하나만 복사하고, 내 터미널에서만 해야 하는 몇 가지 신뢰 설정을 직접 완료해요.
# Set up manage-env (menv) in this repository
manage-env is a zero-knowledge secrets manager for env vars. Secret VALUES must
never enter your context, the chat, or any log - and you never need them to.
Follow these steps in order.
## 1. Install the CLI yourself
Run `menv --version`. If it is missing, install the public macOS/Linux CLI in
your terminal:
`curl -fsSL https://manage-env.com/install | sh`
Then run `export PATH="$HOME/.local/bin:$PATH"` in your current shell and
verify with `menv --version`. Do not ask the human to install the CLI or change
PATH for you. If your client cannot execute the command or requires approval,
request that approval and report the exact blocker instead. Do not send them to
the private GitHub repository.
## 2. Connect the repo yourself
Run `menv connect` from the repository root. It registers the local menv MCP
server for your client and writes the full agent guide into AGENTS.md. It only
touches repo-local files and handles no secret value. Afterwards, reload MCP
servers (or ask the human to restart their AI tool) so the menv tools load.
## 3. Secure user handoff: sign in
Only account authentication requires the human's direct terminal input. Ask
them to run `menv signup` (or `menv login` if they have an account) and enter
the email code, password, and one-time recovery key outside the chat. Do not
ask for, accept, or relay any of those values. Wait until they confirm sign-in.
## 4. Agent steps (menv MCP tools)
- Start with `detect_required_keys` (scans .env.example; works before init).
- If this directory is not bound to a project, call `init_project` - and if
the `org/project` address is not already clear, ask the human for it
instead of inventing one.
- Call `setup_project` to mint random secrets, keypairs, and config defaults
in one version. Treat `needs_user` as the only list of decisions to bring
back to the human.
- Externally-issued keys (STRIPE_*, DATABASE_URL, cloud creds):
`request_value_from_user` - the human pastes the value at their own
terminal. NEVER ask for a secret value in chat.
- Run anything that needs secrets with the `run_with_secrets` MCP tool. If it
fails, it returns a masked tail of the output (injected values shown as
`[menv:masked:KEY]`) so you can debug without the secrets; if
`output_suppressed` is set, a value was too short to mask and the output was
dropped - ask the human to run it in their terminal.
- When a result reports `stale_sync_targets`, re-sync each one with
`sync_to_target`.
## Hard rules
- Never `cat .env`, `printenv`, or log `process.env` - reading a value
defeats the whole point and is treated as an incident.
- Use the `run_with_secrets` MCP tool, not the `menv run` CLI, to run things.
`menv run` is the human's terminal path; its output isn't masked when a human
runs it interactively, and `menv run --raw-output` disables masking entirely
and requires a human at the terminal.
- There is no tool that returns a secret value, by design. Do not try to
reconstruct values by any other route.
- Do not run `menv run --yes` or `menv run --raw-output` on the human's
behalf; those confirmation prompts exist for them, not you.
Full tool discipline: AGENTS.md after `menv connect`, or
https://manage-env.com/llms.txt
한 번만 하는 터미널 설정
내 컴퓨터를 바꾸거나 본인임을 확인하는 단계라서 직접 실행해요. 비밀번호, 이메일 인증 코드, 시크릿 값을 채팅에 붙여넣을 필요는 없어요.
-
공개 CLI를 설치해요
macOS와 Linux에서 쓸 수 있고, 설치 과정에서 내려받은 파일을 검증해요.
curl -fsSL https://manage-env.com/install | sh -
계정을 만들거나 로그인해요
새 계정이면 signup, 기존 계정이면 login을 써요. 이메일 인증 코드와 비밀번호는 내 터미널에만 입력해요.
menv signup # 또는: menv login -
저장소 루트에서 연결해요
Claude Code와 Cursor에 로컬 menv MCP 서버를 등록하고, AGENTS.md에 안전 사용 규칙을 추가해요.
menv connect원클릭 설치는 내 Cursor·VS Code 설정에 menv MCP 서버를 등록합니다. 저장소에서 menv connect도 실행해 주세요 — 팀과 공유되는 .mcp.json과 AGENTS.md 안전 가이드는 여기서 만들어집니다.
-
AI 코딩 도구를 다시 시작해요
새 MCP 서버를 불러오도록 완전히 다시 시작해요. menv 서버 승인을 물으면 허용해 주세요.
그다음은 AI가 이어서 해요
다시 시작한 뒤, 이 페이지 위에서 복사한 프롬프트를 새 대화에 붙여넣으세요. AI는 아래 순서로 작업하고 값 대신 상태와 키 이름만 알려줘요.
detect_required_keys 필요한 환경변수를 찾아요
.env.example을 읽고 자동 생성할 것과 사람이 정할 것을 나눠요.
init_project · setup_project 프로젝트와 안전한 값을 만들어요
저장소를 연결하고 랜덤 시크릿·키페어를 만들며, 비밀이 아닌 기본 설정을 채워요.
request_value_from_user 외부에서 받은 값만 나에게 물어요
Stripe 키나 데이터베이스 URL은 AI가 읽을 수 없는 로컬 터미널 입력창으로 받아요.
run_with_secrets · sync_to_target 앱을 실행하고 승인된 곳에 동기화해요
값을 돌려주지 않고 사용한 뒤 결과, 시간, 대상, 키 이름만 알려줘요.
시크릿 값은 어디로 가나요?
경계는 간단해요. AI는 작업을 조율하고, 값은 신뢰한 로컬 경로에서만 다뤄요.
AI 채팅과 도구 결과
상태, 키 이름, 다음 행동만 받아요. 시크릿 값은 채팅에 붙여넣지 마세요.
내 터미널과 로컬 프로세스
외부에서 발급받은 값은 내가 로컬에서 입력해요. 승인된 프로세스가 필요할 때만 값을 풀어 주입해요.
manage-env 서버
암호화된 데이터와 값 없는 기록만 저장해요. 금고를 풀 수 있는 평문 값은 서버로 보내지 않아요.
문제 해결
menv 명령어를 찾을 수 없어요
$HOME/.local/bin을 PATH에 추가하고 새 터미널을 연 뒤 menv --version을 다시 실행해요.
AI에 menv 도구가 보이지 않아요
저장소 루트에서 menv connect를 다시 실행하고 AI 도구를 재시작한 뒤, 요청되면 menv MCP 서버를 승인해요.
AI가 직접 넣어야 할 값이 있다고 해요
로컬 터미널 입력창이 뜰 때까지 기다렸다가 거기에 붙여넣으세요. 채팅으로 값에 답하지 마세요.
첫 저장소를 연결할 준비가 됐나요?
개인 계정은 무료예요. 계정을 만든 뒤 이 페이지로 돌아와 설정 프롬프트를 복사하세요.
무료 계정 만들기