setup-env

setup-env is a command for Claude Code from navraj007in/architecture-cowork-plugin. It costs 17 tokens per session (1,136 once invoked), scanned A, original, Apache-2.0.

A guided command for setting up external service accounts and their API keys. It checks the keys with live validation and writes verified environment files, which store configuration safely outside source code.

In plain words
What is it for?
Use it to configure services such as payment, email, and other third-party integrations across project components.
Why use it?
It reduces manual configuration work and catches invalid credentials before the application depends on them.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./api-server/.env (10 variables set, 2 skipped).

Part of the architect plugin — 48 skills, 63 commands, 19 agents, 7 MCP servers shipped together

Good fit Use it to configure services such as payment, email, and other third-party integrations across project components.

Compare 6 commands from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/navraj007in/architecture-cowork-plugin
agentmods
npx agentmods add commands/navraj007in/architecture-cowork-plugin/setup-env

Made for: Claude Code.

Or install architect, the plugin that ships this one along with the rest of its 48 skills, 63 commands, 19 agents, 7 MCP servers.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for setup-env

README.md
[![agentmods](https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/setup-env/github.svg)](https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/setup-env)
Your own site
<a href="https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/setup-env"><img src="https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/setup-env/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for setup-env

Your own site · 80×15
<a href="https://agentmods.dev/commands/navraj007in/architecture-cowork-plugin/setup-env"><img src="https://agentmods.dev/badge/commands/navraj007in/architecture-cowork-plugin/setup-env.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 17 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,136 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00017 $0.01136
Opus 5.5 $0.00007 $0.00454
Sonnet 5.5 $0.00003 $0.00227
Haiku 4.5 $0.00002 $0.00114

Measured 1mo ago against content hash 5bbe82effc15, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

setup-env scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/setup-env.md · 120 lines

How it starts

The opening of the file, as written. The whole thing — 120 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/architect:setup-env

Trigger

/architect:setup-env

Purpose

After generating a blueprint and scaffolding projects, this command walks through setting up every third-party service account (from deliverable 4m — Required Accounts), validates API keys with live checks, and writes a working .env file for each project. Turns 60-90 minutes of manual setup into a guided, validated process.

Workflow

Step 1: Read Context

First, check for architecture-output/_state.json. If it exists, read it in full and extract:

  • project.name → product name for display
  • tech_stack → list of integrations (Stripe, SendGrid, etc.) to cross-reference against the accounts list
  • components → component directory names + ports for .env.example discovery

Then, read the SDL and extract architecture.services[].dependsOn[] for each service — this lists the external providers and sibling services each service calls, which maps directly to which third-party credentials and service URLs each service needs in its .env.example. Check solution.sdl.yaml first; if absent, read sdl/README.md then the relevant module (typically sdl/architecture.yaml or sdl/services.yaml).

Then, check if a blueprint with a Required Accounts list (deliverable 4m) or scaffolded projects with .env.example files exist.

If neither exists, respond:

"I need a list of services to set up. Run /architect:blueprint first to identify required accounts, or /architect:scaffold to create projects with .env.example files, then come back here."

Step 2: Show Setup Plan

Present the services in dependency order:

Here are the accounts you need to set up:

| # | Service | Category | Free Tier | Est. Time |
|---|---------|----------|-----------|-----------|
| 1 | Clerk | Auth | 10K MAU | 10 min |
| 2 | Neon | Database | 0.5 GB | 5 min |
| 3 | Upstash | Redis | 10K cmds/day | 5 min |
| 4 | Stripe | Payments | Test mode | 15 min |
| 5 | SendGrid | Email | 100/day | 10 min |
| 6 | Sentry | Monitoring | 5K errors/mo | 5 min |

Total estimated setup time: 50-60 minutes

I'll walk you through each one, validate your keys, and write the .env file.
Ready to start? (yes / skip to specific service)

Read the full file on GitHub · 120 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 120 lines · 17 tokens per session scan A 5bbe82effc15

Subscribe to this mod's changes

setup-env is a command published in the GitHub repository navraj007in/architecture-cowork-plugin (2 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 17 tokens to every session and 1,136 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.