https://github.com/anchorco/anchor-sdk
The official SDKs for Anchor API.
https://github.com/anchorco/anchor-sdk
agents ai ai-agents api-client audit checkpoint compliance data-governance llm policy python rollback storage typescript
Last synced: 5 months ago
JSON representation
The official SDKs for Anchor API.
- Host: GitHub
- URL: https://github.com/anchorco/anchor-sdk
- Owner: anchorco
- License: apache-2.0
- Created: 2025-12-18T04:08:32.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2026-01-14T03:23:32.000Z (5 months ago)
- Last Synced: 2026-01-14T07:12:29.963Z (5 months ago)
- Topics: agents, ai, ai-agents, api-client, audit, checkpoint, compliance, data-governance, llm, policy, python, rollback, storage, typescript
- Language: Python
- Homepage: https://www.getanchor.dev/
- Size: 6.95 MB
- Stars: 15
- Watchers: 3
- Forks: 6
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# Anchor SDK
[](https://github.com/anchorco/anchor-sdk)
[](LICENSE)
**Control what your AI agents store. Audit everything.**
_Block_ bad data before storage.
_Prove_ what happened.
_Rollback_ when things break.
## Installation
**Python:** ```pip install anchorai```
**TypeScript/JavaScript:** ```npm install anchorai```
## Quick Start
### 1. Sign Up and Get Credentials
1. **Go to [app.getanchor.dev](https://app.getanchor.dev)**
2. **Sign up** with your email (or log in if you already have an account)
3. **Copy your API Key** (e.g., `anc_abc123...`)
4. **Important:** Save this securely - you won't be able to see the API key again!
### 2. Install the SDK
**Python** ([PyPI](https://pypi.org/project/anchorai/1.1.0/), [code](https://github.com/anchorco/anchor-sdk/python-sdk)):
```python
from anchor import Anchor
# Initialize with your API key
anchor = Anchor(api_key="your-api-key")
# Create an agent
agent = anchor.agents.create("support-bot")
# Configure policies
anchor.config.update(agent.id, {"policies": {"block_pii": True}})
```
**TypeScript** ([npm](https://www.npmjs.com/package/anchorai/1.1.0), [code](https://github.com/anchorco/anchor-sdk)):
```typescript
import { Anchor } from 'anchorai';
// Initialize with your API key
const anchor = new Anchor({
apiKey: 'your-api-key'
});
const agent = await anchor.agents.create('support-bot');
await anchor.config.update(agent.id, { policies: { block_pii: true } });
```
| Namespace | Purpose | API coverage |
|-----------|-----------|-----------|
| `anchor.agents` | Manage agents | create, get, list, update, delete, suspend, activate|
| `anchor.config` | Version configurations |get, update, versions, get version, rollback|
| `anchor.data` | Store data with policy enforcement |write, read, read full, delete, delete prefix, list, search|
| `anchor.checkpoints` | Create state snapshots and restore |create, list, get, restore, delete|
| `anchor.audit` | Keep hash-chained audit trail |query, get, verify, export|
## Documentation
[**Python Reference**](https://github.com/anchorco/anchor-sdk/tree/release/v1.1.0/python-sdk)
**TypeScript Reference**: typescript-sdk/README.md
**Contributing**: Please see [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.
**License**: This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
## Links
- Website: https://getanchor.dev
- Documentation: https://docs.getanchor.dev
- Python SDK Docs: python-sdk/README.md
- TypeScript SDK Docs: typescript-sdk/README.md
- GitHub Issues: https://github.com/anchorco/anchor-sdk/issues
- Support: founders@getanchor.dev