agentsecrets-cli 1.1.0__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.
@@ -69,4 +69,10 @@ docs/API_SPECIFICATION.md
69
69
  docs/learning/
70
70
  proxy_spec.md
71
71
  code_review.md
72
- content/
72
+ content/
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.0
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
@@ -23,6 +23,8 @@ Every other secrets tool was built for humans to provision credentials to agents
23
23
  [![Go Version](https://img.shields.io/badge/Go-1.21+-00ADD8?logo=go)](https://go.dev/)
24
24
  [![ClawHub](https://img.shields.io/badge/ClawHub-agentsecrets-blue)](https://clawhub.ai/SteppaCodes/agentsecrets)
25
25
 
26
+ **[Official Website](https://agentsecrets.theseventeen.co)** | **[Engineering Blog Series](https://engineering.theseventeen.co/series/building-agentsecrets)**
27
+
26
28
  ---
27
29
 
28
30
  > **Package rename notice**
@@ -45,7 +47,7 @@ Your agent checks its own status. Notices a secret is out of sync. Pulls the lat
45
47
  ```bash
46
48
  # An AI agent managing its own secrets workflow autonomously
47
49
 
48
- agentsecrets status # what workspace, project, last sync?
50
+ agentsecrets status # what workspace, project, environment, last sync?
49
51
  agentsecrets secrets diff # anything out of sync?
50
52
  agentsecrets secrets pull # sync from cloud to keychain
51
53
  agentsecrets secrets list # what keys are available?
@@ -109,7 +111,7 @@ pip install agentsecrets-cli
109
111
  ## Quick Start
110
112
 
111
113
  ```bash
112
- # Create account + encryption keys
114
+ # Set up your account (first time) or initialise a new project (returning user)
113
115
  agentsecrets init
114
116
 
115
117
  # Create a project
@@ -151,6 +153,7 @@ agentsecrets status
151
153
  # Logged in as: steppa@theseventeen.co
152
154
  # Workspace: Acme Engineering
153
155
  # Project: payments-service
156
+ # Environment: development
154
157
  # Last pull: 2 minutes ago
155
158
  ```
156
159
 
@@ -221,7 +224,7 @@ Allowlist modifications require admin role and password verification. Non-admins
221
224
 
222
225
  ```bash
223
226
  agentsecrets proxy logs --last 5
224
- # 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
225
228
  ```
226
229
 
227
230
  ### Role Management
@@ -403,8 +406,9 @@ response = as_client.call(
403
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.
404
407
 
405
408
  **Built on the SDK:**
406
- - [AgentSecrets MCP Server Template](https://github.com/The-17/agentsecrets-mcp-template) — scaffold for building MCP servers with zero credential storage
407
- - [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)*
408
412
 
409
413
  ---
410
414
 
@@ -412,10 +416,10 @@ You pass a key name. The SDK resolves from the OS keychain, injects at the trans
412
416
 
413
417
  ### Account
414
418
  ```bash
415
- agentsecrets init # Create account or login
419
+ agentsecrets init # Set up account or initialise a new project
416
420
  agentsecrets login # Login to existing account
417
421
  agentsecrets logout # Clear session
418
- agentsecrets status # Current user, workspace, project, last sync
422
+ agentsecrets status # Current user, workspace, project, environment, last sync
419
423
  ```
420
424
 
421
425
  ### Workspaces
@@ -435,6 +439,15 @@ agentsecrets project update my-app # Update project
435
439
  agentsecrets project delete my-app # Delete project
436
440
  ```
437
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
+
438
451
  ### Secrets
439
452
  ```bash
440
453
  agentsecrets secrets set KEY=value # Store a secret
@@ -443,20 +456,39 @@ agentsecrets secrets list # List key names — never values
443
456
  agentsecrets secrets push # Upload .env to cloud (encrypted)
444
457
  agentsecrets secrets pull # Download cloud secrets to keychain
445
458
  agentsecrets secrets delete KEY # Remove a secret
446
- 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
447
461
  ```
448
462
 
449
463
  ### Proxy & Calls
450
464
  ```bash
451
465
  agentsecrets call --url <URL> --bearer KEY # One-shot authenticated call
452
466
  agentsecrets proxy start [--port 8765] # Start HTTP proxy
453
- agentsecrets proxy status # Check proxy status
454
- agentsecrets proxy logs [--last N] # View audit log
467
+ agentsecrets proxy status # Check proxy status & revocation list
468
+ agentsecrets proxy sync # Force background revocation sync
469
+ agentsecrets proxy logs [--last N] [--watch] # View or stream local audit trail
455
470
  agentsecrets exec # OpenClaw exec provider (reads stdin)
456
471
  agentsecrets mcp serve # Start MCP server
457
472
  agentsecrets mcp install # Auto-configure AI tools
458
473
  ```
459
474
 
475
+ ### Logging & Audit
476
+ ```bash
477
+ agentsecrets log list [--tail] # View or stream global backend logs
478
+ agentsecrets log export --format csv # Export global logs to CSV/JSON
479
+ agentsecrets log summary # View global statistics and usage metrics
480
+ agentsecrets log detail <id> # Inspect a specific request deeply
481
+ ```
482
+
483
+ ### Agent Identity
484
+ ```bash
485
+ agentsecrets agent list # List AI agents attached to workspace
486
+ agentsecrets agent delete <name> # Delete agent & safely cascade-revoke tokens
487
+ agentsecrets agent token issue <name> # Generate a new session key for an AI
488
+ agentsecrets agent token list <name> # See all active tokens for an agent
489
+ agentsecrets agent token revoke <id> --agent="<name>" # Revoke a specific identity token
490
+ ```
491
+
460
492
  ### Environment Injection
461
493
  ```bash
462
494
  agentsecrets env -- <command> [args...] # Inject secrets as env vars into child process
@@ -485,6 +517,7 @@ agentsecrets workspace demote user@email.com # Revoke admin role
485
517
  | **Domain allowlist enforcement** | ✅ Deny-by-default | ❌ | ❌ | ❌ | ❌ |
486
518
  | **Response body redaction** | ✅ Echo exfiltration defense | ❌ | ❌ | ❌ | ❌ |
487
519
  | **Prompt injection protection** | ✅ Structural | ❌ | ❌ | ❌ | ❌ |
520
+ | **Environment support (dev/staging/prod)** | ✅ Built-in | ⚠️ Manual | ⚠️ Manual | ✅ | ⚠️ Manual |
488
521
  | **Env var injection (`run --`)** | ✅ `agentsecrets env` | ❌ | ❌ | ✅ `doppler run` | ✅ `op run` |
489
522
  | **AI-native workflow** | ✅ Built for it | ❌ | ❌ | ❌ | ❌ |
490
523
  | **SDK for building on top** | ✅ | ❌ | ❌ | ❌ | ❌ |
@@ -517,12 +550,12 @@ agentsecrets secrets pull
517
550
  ### Autonomous Agent Deployment
518
551
  ```bash
519
552
  # Agent handles this entire flow without human intervention
520
- agentsecrets secrets diff # checks for drift
521
- agentsecrets secrets pull # syncs if needed
522
- agentsecrets workspace switch production
523
- 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
524
557
  agentsecrets env -- python deploy.py
525
- agentsecrets proxy logs # audits what happened
558
+ agentsecrets proxy logs # audits what happened
526
559
  ```
527
560
 
528
561
  ### Incident Response at 2am
@@ -568,11 +601,14 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
568
601
  - [x] Workspace role management (promote/demote)
569
602
  - [x] `agentsecrets env` — environment variable injection
570
603
  - [x] Python SDK (`pip install agentsecrets`)
571
- - [ ] 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)
572
608
  - [ ] AgentSecrets for LangChain
573
609
  - [ ] AgentSecrets for CrewAI
610
+ - [ ] JavaScript / Node.js SDK
574
611
  - [ ] Secret rotation
575
- - [ ] Environment support (dev/staging/prod)
576
612
  - [ ] Web dashboard
577
613
  - [ ] Cloud resolver (serverless + production deployments)
578
614
  - [ ] AgentSecrets Connect (multi-tenant credential delegation)
@@ -604,6 +640,8 @@ make test
604
640
 
605
641
  ## Links
606
642
 
643
+ - **Website**: [agentsecrets.theseventeen.co](https://agentsecrets.theseventeen.co)
644
+ - **Deep Dive**: [Building AgentSecrets (Engineering Blog)](https://engineering.theseventeen.co/series/building-agentsecrets)
607
645
  - **GitHub**: [github.com/The-17/agentsecrets](https://github.com/The-17/agentsecrets)
608
646
  - **SDK**: [github.com/The-17/agentsecrets-sdk](https://github.com/The-17/agentsecrets-sdk)
609
647
  - **ClawHub**: [clawhub.ai/SteppaCodes/agentsecrets](https://clawhub.ai/SteppaCodes/agentsecrets)
@@ -8,6 +8,8 @@ Every other secrets tool was built for humans to provision credentials to agents
8
8
  [![Go Version](https://img.shields.io/badge/Go-1.21+-00ADD8?logo=go)](https://go.dev/)
9
9
  [![ClawHub](https://img.shields.io/badge/ClawHub-agentsecrets-blue)](https://clawhub.ai/SteppaCodes/agentsecrets)
10
10
 
11
+ **[Official Website](https://agentsecrets.theseventeen.co)** | **[Engineering Blog Series](https://engineering.theseventeen.co/series/building-agentsecrets)**
12
+
11
13
  ---
12
14
 
13
15
  > **Package rename notice**
@@ -30,7 +32,7 @@ Your agent checks its own status. Notices a secret is out of sync. Pulls the lat
30
32
  ```bash
31
33
  # An AI agent managing its own secrets workflow autonomously
32
34
 
33
- agentsecrets status # what workspace, project, last sync?
35
+ agentsecrets status # what workspace, project, environment, last sync?
34
36
  agentsecrets secrets diff # anything out of sync?
35
37
  agentsecrets secrets pull # sync from cloud to keychain
36
38
  agentsecrets secrets list # what keys are available?
@@ -94,7 +96,7 @@ pip install agentsecrets-cli
94
96
  ## Quick Start
95
97
 
96
98
  ```bash
97
- # Create account + encryption keys
99
+ # Set up your account (first time) or initialise a new project (returning user)
98
100
  agentsecrets init
99
101
 
100
102
  # Create a project
@@ -136,6 +138,7 @@ agentsecrets status
136
138
  # Logged in as: steppa@theseventeen.co
137
139
  # Workspace: Acme Engineering
138
140
  # Project: payments-service
141
+ # Environment: development
139
142
  # Last pull: 2 minutes ago
140
143
  ```
141
144
 
@@ -206,7 +209,7 @@ Allowlist modifications require admin role and password verification. Non-admins
206
209
 
207
210
  ```bash
208
211
  agentsecrets proxy logs --last 5
209
- # 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
210
213
  ```
211
214
 
212
215
  ### Role Management
@@ -388,8 +391,9 @@ response = as_client.call(
388
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.
389
392
 
390
393
  **Built on the SDK:**
391
- - [AgentSecrets MCP Server Template](https://github.com/The-17/agentsecrets-mcp-template) — scaffold for building MCP servers with zero credential storage
392
- - [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)*
393
397
 
394
398
  ---
395
399
 
@@ -397,10 +401,10 @@ You pass a key name. The SDK resolves from the OS keychain, injects at the trans
397
401
 
398
402
  ### Account
399
403
  ```bash
400
- agentsecrets init # Create account or login
404
+ agentsecrets init # Set up account or initialise a new project
401
405
  agentsecrets login # Login to existing account
402
406
  agentsecrets logout # Clear session
403
- agentsecrets status # Current user, workspace, project, last sync
407
+ agentsecrets status # Current user, workspace, project, environment, last sync
404
408
  ```
405
409
 
406
410
  ### Workspaces
@@ -420,6 +424,15 @@ agentsecrets project update my-app # Update project
420
424
  agentsecrets project delete my-app # Delete project
421
425
  ```
422
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
+
423
436
  ### Secrets
424
437
  ```bash
425
438
  agentsecrets secrets set KEY=value # Store a secret
@@ -428,20 +441,39 @@ agentsecrets secrets list # List key names — never values
428
441
  agentsecrets secrets push # Upload .env to cloud (encrypted)
429
442
  agentsecrets secrets pull # Download cloud secrets to keychain
430
443
  agentsecrets secrets delete KEY # Remove a secret
431
- 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
432
446
  ```
433
447
 
434
448
  ### Proxy & Calls
435
449
  ```bash
436
450
  agentsecrets call --url <URL> --bearer KEY # One-shot authenticated call
437
451
  agentsecrets proxy start [--port 8765] # Start HTTP proxy
438
- agentsecrets proxy status # Check proxy status
439
- agentsecrets proxy logs [--last N] # View audit log
452
+ agentsecrets proxy status # Check proxy status & revocation list
453
+ agentsecrets proxy sync # Force background revocation sync
454
+ agentsecrets proxy logs [--last N] [--watch] # View or stream local audit trail
440
455
  agentsecrets exec # OpenClaw exec provider (reads stdin)
441
456
  agentsecrets mcp serve # Start MCP server
442
457
  agentsecrets mcp install # Auto-configure AI tools
443
458
  ```
444
459
 
460
+ ### Logging & Audit
461
+ ```bash
462
+ agentsecrets log list [--tail] # View or stream global backend logs
463
+ agentsecrets log export --format csv # Export global logs to CSV/JSON
464
+ agentsecrets log summary # View global statistics and usage metrics
465
+ agentsecrets log detail <id> # Inspect a specific request deeply
466
+ ```
467
+
468
+ ### Agent Identity
469
+ ```bash
470
+ agentsecrets agent list # List AI agents attached to workspace
471
+ agentsecrets agent delete <name> # Delete agent & safely cascade-revoke tokens
472
+ agentsecrets agent token issue <name> # Generate a new session key for an AI
473
+ agentsecrets agent token list <name> # See all active tokens for an agent
474
+ agentsecrets agent token revoke <id> --agent="<name>" # Revoke a specific identity token
475
+ ```
476
+
445
477
  ### Environment Injection
446
478
  ```bash
447
479
  agentsecrets env -- <command> [args...] # Inject secrets as env vars into child process
@@ -470,6 +502,7 @@ agentsecrets workspace demote user@email.com # Revoke admin role
470
502
  | **Domain allowlist enforcement** | ✅ Deny-by-default | ❌ | ❌ | ❌ | ❌ |
471
503
  | **Response body redaction** | ✅ Echo exfiltration defense | ❌ | ❌ | ❌ | ❌ |
472
504
  | **Prompt injection protection** | ✅ Structural | ❌ | ❌ | ❌ | ❌ |
505
+ | **Environment support (dev/staging/prod)** | ✅ Built-in | ⚠️ Manual | ⚠️ Manual | ✅ | ⚠️ Manual |
473
506
  | **Env var injection (`run --`)** | ✅ `agentsecrets env` | ❌ | ❌ | ✅ `doppler run` | ✅ `op run` |
474
507
  | **AI-native workflow** | ✅ Built for it | ❌ | ❌ | ❌ | ❌ |
475
508
  | **SDK for building on top** | ✅ | ❌ | ❌ | ❌ | ❌ |
@@ -502,12 +535,12 @@ agentsecrets secrets pull
502
535
  ### Autonomous Agent Deployment
503
536
  ```bash
504
537
  # Agent handles this entire flow without human intervention
505
- agentsecrets secrets diff # checks for drift
506
- agentsecrets secrets pull # syncs if needed
507
- agentsecrets workspace switch production
508
- 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
509
542
  agentsecrets env -- python deploy.py
510
- agentsecrets proxy logs # audits what happened
543
+ agentsecrets proxy logs # audits what happened
511
544
  ```
512
545
 
513
546
  ### Incident Response at 2am
@@ -553,11 +586,14 @@ See [ARCHITECTURE.md](docs/ARCHITECTURE.md) and [PROXY.md](docs/PROXY.md) for de
553
586
  - [x] Workspace role management (promote/demote)
554
587
  - [x] `agentsecrets env` — environment variable injection
555
588
  - [x] Python SDK (`pip install agentsecrets`)
556
- - [ ] 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)
557
593
  - [ ] AgentSecrets for LangChain
558
594
  - [ ] AgentSecrets for CrewAI
595
+ - [ ] JavaScript / Node.js SDK
559
596
  - [ ] Secret rotation
560
- - [ ] Environment support (dev/staging/prod)
561
597
  - [ ] Web dashboard
562
598
  - [ ] Cloud resolver (serverless + production deployments)
563
599
  - [ ] AgentSecrets Connect (multi-tenant credential delegation)
@@ -589,6 +625,8 @@ make test
589
625
 
590
626
  ## Links
591
627
 
628
+ - **Website**: [agentsecrets.theseventeen.co](https://agentsecrets.theseventeen.co)
629
+ - **Deep Dive**: [Building AgentSecrets (Engineering Blog)](https://engineering.theseventeen.co/series/building-agentsecrets)
592
630
  - **GitHub**: [github.com/The-17/agentsecrets](https://github.com/The-17/agentsecrets)
593
631
  - **SDK**: [github.com/The-17/agentsecrets-sdk](https://github.com/The-17/agentsecrets-sdk)
594
632
  - **ClawHub**: [clawhub.ai/SteppaCodes/agentsecrets](https://clawhub.ai/SteppaCodes/agentsecrets)
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "agentsecrets-cli"
7
- version = "1.1.0"
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"