agentsecrets-cli 1.1.1__tar.gz → 1.1.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -70,4 +70,9 @@ docs/learning/
70
70
  proxy_spec.md
71
71
  code_review.md
72
72
  content/
73
- specs/
73
+ specs/
74
+
75
+ # AgentSecrets environment files
76
+ .env.development
77
+ .env.staging
78
+ .env.production
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agentsecrets-cli
3
- Version: 1.1.1
3
+ Version: 1.1.2
4
4
  Summary: AI-native zero-knowledge secrets manager
5
5
  Author-email: The Seventeen <hello@theseventeen.co>
6
6
  License-Expression: MIT
@@ -47,7 +47,7 @@ Your agent checks its own status. Notices a secret is out of sync. Pulls the lat
47
47
  ```bash
48
48
  # An AI agent managing its own secrets workflow autonomously
49
49
 
50
- agentsecrets status # what workspace, project, last sync?
50
+ agentsecrets status # what workspace, project, environment, last sync?
51
51
  agentsecrets secrets diff # anything out of sync?
52
52
  agentsecrets secrets pull # sync from cloud to keychain
53
53
  agentsecrets secrets list # what keys are available?
@@ -111,7 +111,7 @@ pip install agentsecrets-cli
111
111
  ## Quick Start
112
112
 
113
113
  ```bash
114
- # Create account + encryption keys
114
+ # Set up your account (first time) or initialise a new project (returning user)
115
115
  agentsecrets init
116
116
 
117
117
  # Create a project
@@ -153,6 +153,7 @@ agentsecrets status
153
153
  # Logged in as: steppa@theseventeen.co
154
154
  # Workspace: Acme Engineering
155
155
  # Project: payments-service
156
+ # Environment: development
156
157
  # Last pull: 2 minutes ago
157
158
  ```
158
159
 
@@ -223,7 +224,7 @@ Allowlist modifications require admin role and password verification. Non-admins
223
224
 
224
225
  ```bash
225
226
  agentsecrets proxy logs --last 5
226
- # 14:23:01 ✓ OK (REDACTED) GET httpbin.org/headers STRIPE_KEY bearer 200 credential_echo 245ms
227
+ # 14:23:01 * OK (REDACTED) GET httpbin.org/headers STRIPE_KEY bearer 200 credential_echo 245ms
227
228
  ```
228
229
 
229
230
  ### Role Management
@@ -405,8 +406,9 @@ response = as_client.call(
405
406
  You pass a key name. The SDK resolves from the OS keychain, injects at the transport layer, returns only the API response. Every user of every tool built on the SDK gets zero-knowledge credential management automatically.
406
407
 
407
408
  **Built on the SDK:**
408
- - [AgentSecrets MCP Server Template](https://github.com/The-17/agentsecrets-mcp-template) — scaffold for building MCP servers with zero credential storage
409
- - [AgentSecrets for LangChain](https://github.com/The-17/agentsecrets-langchain) — zero-knowledge API calls in any LangChain agent
409
+ - [Zero-Knowledge MCP Server Template](https://github.com/The-17/zero-knowledge-mcp) — scaffold for building MCP servers with zero credential storage
410
+ - AgentSecrets for LangChain — zero-knowledge API calls in any LangChain agent *(coming soon)*
411
+ - AgentSecrets JS SDK — JavaScript/Node.js SDK *(coming soon)*
410
412
 
411
413
  ---
412
414
 
@@ -414,10 +416,10 @@ You pass a key name. The SDK resolves from the OS keychain, injects at the trans
414
416
 
415
417
  ### Account
416
418
  ```bash
417
- agentsecrets init # Create account or login
419
+ agentsecrets init # Set up account or initialise a new project
418
420
  agentsecrets login # Login to existing account
419
421
  agentsecrets logout # Clear session
420
- agentsecrets status # Current user, workspace, project, last sync
422
+ agentsecrets status # Current user, workspace, project, environment, last sync
421
423
  ```
422
424
 
423
425
  ### Workspaces
@@ -437,6 +439,15 @@ agentsecrets project update my-app # Update project
437
439
  agentsecrets project delete my-app # Delete project
438
440
  ```
439
441
 
442
+ ### Environments
443
+ ```bash
444
+ agentsecrets environment switch <name> # Switch active environment (development, staging, production)
445
+ agentsecrets environment list # List all environments and secret counts
446
+ agentsecrets environment copy <from> <to> # Copy all secrets from one env to another
447
+ agentsecrets environment merge <from> <to> # Merge secrets and prompt for new values
448
+ agentsecrets environment clean # Delete all secrets in current environment
449
+ ```
450
+
440
451
  ### Secrets
441
452
  ```bash
442
453
  agentsecrets secrets set KEY=value # Store a secret
@@ -445,7 +456,8 @@ agentsecrets secrets list # List key names — never values
445
456
  agentsecrets secrets push # Upload .env to cloud (encrypted)
446
457
  agentsecrets secrets pull # Download cloud secrets to keychain
447
458
  agentsecrets secrets delete KEY # Remove a secret
448
- agentsecrets secrets diff # Compare local vs cloud
459
+ agentsecrets secrets diff # Compare local vs cloud active environment
460
+ agentsecrets secrets diff --from X --to Y # Compare two environments directly
449
461
  ```
450
462
 
451
463
  ### Proxy & Calls
@@ -505,6 +517,7 @@ agentsecrets workspace demote user@email.com # Revoke admin role
505
517
  | **Domain allowlist enforcement** | ✅ Deny-by-default | ❌ | ❌ | ❌ | ❌ |
506
518
  | **Response body redaction** | ✅ Echo exfiltration defense | ❌ | ❌ | ❌ | ❌ |
507
519
  | **Prompt injection protection** | ✅ Structural | ❌ | ❌ | ❌ | ❌ |
520
+ | **Environment support (dev/staging/prod)** | ✅ Built-in | ⚠️ Manual | ⚠️ Manual | ✅ | ⚠️ Manual |
508
521
  | **Env var injection (`run --`)** | ✅ `agentsecrets env` | ❌ | ❌ | ✅ `doppler run` | ✅ `op run` |
509
522
  | **AI-native workflow** | ✅ Built for it | ❌ | ❌ | ❌ | ❌ |
510
523
  | **SDK for building on top** | ✅ | ❌ | ❌ | ❌ | ❌ |
@@ -537,12 +550,12 @@ agentsecrets secrets pull
537
550
  ### Autonomous Agent Deployment
538
551
  ```bash
539
552
  # Agent handles this entire flow without human intervention
540
- agentsecrets secrets diff # checks for drift
541
- agentsecrets secrets pull # syncs if needed
542
- agentsecrets workspace switch production
543
- agentsecrets secrets pull
553
+ agentsecrets secrets diff # checks for drift
554
+ agentsecrets secrets pull # syncs if needed
555
+ agentsecrets environment switch production # switch to production environment
556
+ agentsecrets secrets pull # pull production secrets
544
557
  agentsecrets env -- python deploy.py
545
- agentsecrets proxy logs # audits what happened
558
+ agentsecrets proxy logs # audits what happened
546
559
  ```
547
560
 
548
561
  ### Incident Response at 2am
@@ -588,11 +601,14 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
588
601
  - [x] Workspace role management (promote/demote)
589
602
  - [x] `agentsecrets env` — environment variable injection
590
603
  - [x] Python SDK (`pip install agentsecrets`)
591
- - [ ] AgentSecrets MCP Server Template
604
+ - [x] Zero-Knowledge MCP Server Template
605
+ - [x] Agent identity + token management
606
+ - [x] Governance audit log
607
+ - [x] Environment support (development / staging / production)
592
608
  - [ ] AgentSecrets for LangChain
593
609
  - [ ] AgentSecrets for CrewAI
610
+ - [ ] JavaScript / Node.js SDK
594
611
  - [ ] Secret rotation
595
- - [ ] Environment support (dev/staging/prod)
596
612
  - [ ] Web dashboard
597
613
  - [ ] Cloud resolver (serverless + production deployments)
598
614
  - [ ] AgentSecrets Connect (multi-tenant credential delegation)
@@ -32,7 +32,7 @@ Your agent checks its own status. Notices a secret is out of sync. Pulls the lat
32
32
  ```bash
33
33
  # An AI agent managing its own secrets workflow autonomously
34
34
 
35
- agentsecrets status # what workspace, project, last sync?
35
+ agentsecrets status # what workspace, project, environment, last sync?
36
36
  agentsecrets secrets diff # anything out of sync?
37
37
  agentsecrets secrets pull # sync from cloud to keychain
38
38
  agentsecrets secrets list # what keys are available?
@@ -96,7 +96,7 @@ pip install agentsecrets-cli
96
96
  ## Quick Start
97
97
 
98
98
  ```bash
99
- # Create account + encryption keys
99
+ # Set up your account (first time) or initialise a new project (returning user)
100
100
  agentsecrets init
101
101
 
102
102
  # Create a project
@@ -138,6 +138,7 @@ agentsecrets status
138
138
  # Logged in as: steppa@theseventeen.co
139
139
  # Workspace: Acme Engineering
140
140
  # Project: payments-service
141
+ # Environment: development
141
142
  # Last pull: 2 minutes ago
142
143
  ```
143
144
 
@@ -208,7 +209,7 @@ Allowlist modifications require admin role and password verification. Non-admins
208
209
 
209
210
  ```bash
210
211
  agentsecrets proxy logs --last 5
211
- # 14:23:01 ✓ OK (REDACTED) GET httpbin.org/headers STRIPE_KEY bearer 200 credential_echo 245ms
212
+ # 14:23:01 * OK (REDACTED) GET httpbin.org/headers STRIPE_KEY bearer 200 credential_echo 245ms
212
213
  ```
213
214
 
214
215
  ### Role Management
@@ -390,8 +391,9 @@ response = as_client.call(
390
391
  You pass a key name. The SDK resolves from the OS keychain, injects at the transport layer, returns only the API response. Every user of every tool built on the SDK gets zero-knowledge credential management automatically.
391
392
 
392
393
  **Built on the SDK:**
393
- - [AgentSecrets MCP Server Template](https://github.com/The-17/agentsecrets-mcp-template) — scaffold for building MCP servers with zero credential storage
394
- - [AgentSecrets for LangChain](https://github.com/The-17/agentsecrets-langchain) — zero-knowledge API calls in any LangChain agent
394
+ - [Zero-Knowledge MCP Server Template](https://github.com/The-17/zero-knowledge-mcp) — scaffold for building MCP servers with zero credential storage
395
+ - AgentSecrets for LangChain — zero-knowledge API calls in any LangChain agent *(coming soon)*
396
+ - AgentSecrets JS SDK — JavaScript/Node.js SDK *(coming soon)*
395
397
 
396
398
  ---
397
399
 
@@ -399,10 +401,10 @@ You pass a key name. The SDK resolves from the OS keychain, injects at the trans
399
401
 
400
402
  ### Account
401
403
  ```bash
402
- agentsecrets init # Create account or login
404
+ agentsecrets init # Set up account or initialise a new project
403
405
  agentsecrets login # Login to existing account
404
406
  agentsecrets logout # Clear session
405
- agentsecrets status # Current user, workspace, project, last sync
407
+ agentsecrets status # Current user, workspace, project, environment, last sync
406
408
  ```
407
409
 
408
410
  ### Workspaces
@@ -422,6 +424,15 @@ agentsecrets project update my-app # Update project
422
424
  agentsecrets project delete my-app # Delete project
423
425
  ```
424
426
 
427
+ ### Environments
428
+ ```bash
429
+ agentsecrets environment switch <name> # Switch active environment (development, staging, production)
430
+ agentsecrets environment list # List all environments and secret counts
431
+ agentsecrets environment copy <from> <to> # Copy all secrets from one env to another
432
+ agentsecrets environment merge <from> <to> # Merge secrets and prompt for new values
433
+ agentsecrets environment clean # Delete all secrets in current environment
434
+ ```
435
+
425
436
  ### Secrets
426
437
  ```bash
427
438
  agentsecrets secrets set KEY=value # Store a secret
@@ -430,7 +441,8 @@ agentsecrets secrets list # List key names — never values
430
441
  agentsecrets secrets push # Upload .env to cloud (encrypted)
431
442
  agentsecrets secrets pull # Download cloud secrets to keychain
432
443
  agentsecrets secrets delete KEY # Remove a secret
433
- agentsecrets secrets diff # Compare local vs cloud
444
+ agentsecrets secrets diff # Compare local vs cloud active environment
445
+ agentsecrets secrets diff --from X --to Y # Compare two environments directly
434
446
  ```
435
447
 
436
448
  ### Proxy & Calls
@@ -490,6 +502,7 @@ agentsecrets workspace demote user@email.com # Revoke admin role
490
502
  | **Domain allowlist enforcement** | ✅ Deny-by-default | ❌ | ❌ | ❌ | ❌ |
491
503
  | **Response body redaction** | ✅ Echo exfiltration defense | ❌ | ❌ | ❌ | ❌ |
492
504
  | **Prompt injection protection** | ✅ Structural | ❌ | ❌ | ❌ | ❌ |
505
+ | **Environment support (dev/staging/prod)** | ✅ Built-in | ⚠️ Manual | ⚠️ Manual | ✅ | ⚠️ Manual |
493
506
  | **Env var injection (`run --`)** | ✅ `agentsecrets env` | ❌ | ❌ | ✅ `doppler run` | ✅ `op run` |
494
507
  | **AI-native workflow** | ✅ Built for it | ❌ | ❌ | ❌ | ❌ |
495
508
  | **SDK for building on top** | ✅ | ❌ | ❌ | ❌ | ❌ |
@@ -522,12 +535,12 @@ agentsecrets secrets pull
522
535
  ### Autonomous Agent Deployment
523
536
  ```bash
524
537
  # Agent handles this entire flow without human intervention
525
- agentsecrets secrets diff # checks for drift
526
- agentsecrets secrets pull # syncs if needed
527
- agentsecrets workspace switch production
528
- agentsecrets secrets pull
538
+ agentsecrets secrets diff # checks for drift
539
+ agentsecrets secrets pull # syncs if needed
540
+ agentsecrets environment switch production # switch to production environment
541
+ agentsecrets secrets pull # pull production secrets
529
542
  agentsecrets env -- python deploy.py
530
- agentsecrets proxy logs # audits what happened
543
+ agentsecrets proxy logs # audits what happened
531
544
  ```
532
545
 
533
546
  ### Incident Response at 2am
@@ -573,11 +586,14 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
573
586
  - [x] Workspace role management (promote/demote)
574
587
  - [x] `agentsecrets env` — environment variable injection
575
588
  - [x] Python SDK (`pip install agentsecrets`)
576
- - [ ] AgentSecrets MCP Server Template
589
+ - [x] Zero-Knowledge MCP Server Template
590
+ - [x] Agent identity + token management
591
+ - [x] Governance audit log
592
+ - [x] Environment support (development / staging / production)
577
593
  - [ ] AgentSecrets for LangChain
578
594
  - [ ] AgentSecrets for CrewAI
595
+ - [ ] JavaScript / Node.js SDK
579
596
  - [ ] Secret rotation
580
- - [ ] Environment support (dev/staging/prod)
581
597
  - [ ] Web dashboard
582
598
  - [ ] Cloud resolver (serverless + production deployments)
583
599
  - [ ] AgentSecrets Connect (multi-tenant credential delegation)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agentsecrets-cli"
7
- version = "1.1.1"
7
+ version = "1.1.2"
8
8
  description = "AI-native zero-knowledge secrets manager"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.8"