Skip to content

anchorco/anchor-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Anchor SDK

License Build Status npm pip

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. Get an API Key

Sign up at getanchor.dev to get your API key and workspace ID.

2. Start Using Anchor

Python (PyPI, code):

from anchor import Anchor

anchor = Anchor(api_key="your-api-key")

agent = anchor.agents.create("support-bot")
anchor.config.update(agent.id, {"policies": {"block_pii": True}})

TypeScript (NPM, code):

import { Anchor } from 'anchorai';

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

Docs

https://docs.getanchor.dev/

Contributing: Please see CONTRIBUTING.md for guidelines.

License: This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Links

PyPI package NPM package