Quick Start
Get started with VectorsDB in under 5 minutes. Build your first AI agent memory system.
Getting your first API key
Web-first (recommended)
- Sign up with email or GitHub.
- On first login, the welcome modal reveals your default API key's plaintext.
- Copy it — you will see it once.
- Use it from any SDK, CLI, or HTTP client.
You will see your key once. The plaintext is never stored on our side after that single reveal — only its hash. If you lose it, head to the API Keys page and create a replacement.
SDK / CLI-first (BYOK)
Already comfortable in a terminal? Once you have your key from the dashboard, drop it into AETHERFY_API_KEY and the SDKs pick it up automatically:
# Python SDK — picks up AETHERFY_API_KEY automatically
import os
os.environ["AETHERFY_API_KEY"] = "afy_live_your_api_key_here"
from aetherfy_vectors import AetherfyVectorsClient
client = AetherfyVectorsClient() # env var → no kwarg needed// JS / TypeScript SDK — same env-var convention
// process.env.AETHERFY_API_KEY = 'afy_live_your_api_key_here'
import { AetherfyVectorsClient } from 'aetherfy-vectors';
const client = new AetherfyVectorsClient(); // env var → no kwarg neededThe CLI is the same convention — afy login --api-key … persists the key locally.
A note on revocation:the auto-provisioned default key can be revoked like any other. Revoking it doesn't lose dashboard editor access — the editor uses an internal token — but it does invalidate the key for SDK and CLI use, so create a replacement before revoking if you're using it outside the dashboard.
Install the SDK
Add VectorsDB to your project
npm install @aetherfy/vectorsdbInitialize the client
Get your API key from the dashboard
import { VectorsDB } from '@aetherfy/vectorsdb'
const client = new VectorsDB({
apiKey: process.env.VECTORSDB_API_KEY
})Create a collection
Set up a collection for your vectors
await client.createCollection('agent-memory', {
vector_size: 1536, // OpenAI ada-002 dimensions
distance: 'cosine'
})Insert vectors
Add vectors with metadata to your collection
await client.upsert('agent-memory', {
id: 'memory-001',
vector: embeddings, // Your vector embeddings
metadata: {
agent_id: 'assistant',
content: 'User prefers morning meetings',
timestamp: Date.now()
}
})Search vectors
Find similar vectors with filtering
const results = await client.search('agent-memory', {
vector: queryEmbedding,
limit: 5,
filter: { agent_id: 'assistant' }
})
console.log(results) // Returns in <100ms globally