AgentCreds Vault 🔐
Production-ready secret management for autonomous agents. Features versioning, auto-rotation, audit logs, and a Python SDK with LangChain integration.
✨ Features
- - CRUD + Versioning: Store/retrieve secrets with full history
- Auto-Rotation: Scheduled credential rotation (AWS, OpenAI, etc.)
- Audit Logs: Tamper-evident logging of all access
- LangChain Tool: Built-in tool for agent workflows
- Docker + Postgres + Redis: Production-grade stack
📦 What's Included
- -
app/main.py — FastAPI application - INLINECODE1 — SQLAlchemy models
- INLINECODE2 — REST API endpoints
- INLINECODE3 — Background rotation worker
- INLINECODE4 — Python package with LangChain tool
- INLINECODE5 — Full stack (API + DB + Redis)
- INLINECODE6 — Deployment guide
- INLINECODE7 — Quick start
🛠️ Quick Start
CODEBLOCK0
SDK usage:
CODEBLOCK1
📜 License
MIT — see
LICENSE file.
技能名称: agentcreds
详细描述:
AgentCreds 保险库 🔐
为自主代理提供生产就绪的机密管理。支持版本控制、自动轮换、审计日志,以及集成LangChain的Python SDK。
✨ 功能特性
- - CRUD + 版本控制: 存储/检索机密,保留完整历史记录
- 自动轮换: 定时轮换凭证(AWS、OpenAI等)
- 审计日志: 防篡改的所有访问日志记录
- LangChain工具: 为代理工作流提供内置工具
- Docker + Postgres + Redis: 生产级技术栈
📦 包含内容
- - app/main.py — FastAPI应用程序
- app/models.py — SQLAlchemy模型
- app/routers/creds.py — REST API端点
- app/workers/rotation.py — 后台轮换工作器
- sdk/agentcreds/ — 包含LangChain工具的Python包
- docker-compose.yml — 完整技术栈(API + 数据库 + Redis)
- PRODUCTION.md — 部署指南
- DEPLOYMENT.md — 快速入门
🛠️ 快速开始
bash
git clone https://github.com/wjs829/agentcreds-skill.git
cd agentcreds-skill/scripts
docker-compose up -d
API运行于 http://localhost:8000
SDK使用示例:
python
from agentcreds import AgentCreds
vault = AgentCreds(api_url=http://localhost:8000)
secret = vault.getsecret(openaikey)
📜 许可证
MIT — 详见LICENSE文件。