Environment Variables
| Variable | Description | Required |
|---|---|---|
AMFS_HTTP_URL | Your AMFS API URL (e.g. https://amfs-login.sense-lab.ai) | Yes |
AMFS_API_KEY | Your API key (from Dashboard → Settings → API Keys) | Yes |
AMFS_AGENT_ID | Override auto-detected agent identity (for CI, scripts, servers) | No |
AMFS_HTTP_URL is set, the SDK and MCP server route all operations through the authenticated HTTP API. No config files, no adapter setup, no database connection strings.
SDK Options
When using the Python SDK directly, pass options to the constructor:| Parameter | Type | Description |
|---|---|---|
agent_id | str | Identity for this agent (required) |
session_id | str | Session identifier; auto-generated if omitted |
ttl_sweep_interval | float | Seconds between TTL sweep runs |
decay_half_life_days | float | Confidence decay half-life in days |
conflict_policy | ConflictPolicy | How to handle concurrent write conflicts |
AMFS_HTTP_URL is set — no adapter configuration needed.
Agent Identity
Agents are identified by theiragent_id. This determines:
- Who gets credit for writes (provenance)
- What shows up in the Dashboard
- How
recall()andmy_entries()scope results
amfs_set_identity at the start of each session. Without it, identity is auto-detected from the IDE environment:
| Environment | Detected ID |
|---|---|
| Cursor | cursor/<username> |
| Claude Code | claude-code/<username> |
AMFS_AGENT_ID set | value of AMFS_AGENT_ID |
| Fallback | agent/<username> |
agent_id in the constructor or header.
Scoped API Keys
API keys can be restricted to specific entity paths and permissions:Namespaces
Namespaces isolate memory between environments. Entries in different namespaces don’t see each other. Namespaces are managed through the Dashboard. The default namespace isdefault.
Next Steps
Quick Start
Write, read, and search memory.
MCP Setup
Connect your IDE to AMFS.
Core Concepts
How AMFS works under the hood.
Environment Variables
Full reference with all options.
