Skip to main content

aether-ai

Python SDK for the Aether decentralized RAG API.

Installation

pip install aether-ai

Memory — the fastest way to build agent memory

For per-user or per-agent memory, reach for the Memory facade. Construct it once with an entity id and every call is automatically scoped to that entity — no tags or filters to manage:

from aether import Memory

mem = Memory("patient-john", api_key="aether_your_key_here")

# Store a memory
mem.remember("Anxious about flying; uses 4-7-8 breathing")

# Recall the most relevant memories for this entity
for item in mem.recall("anxiety coping"):
    print(item.score, item.text)

# Newest-first history, or wipe the slate
mem.list(limit=20)
mem.forget_all()
  • recall(query, k=5, recency_weight=0.0, since=..., until=..., filter=...) blends relevance (a score in (0, 1], higher is better) with optional exponential recency decay, and can filter on the metadata you stored.
  • remember(text, metadata={...}) stores the memory and writes metadata as searchable key:value tags.
  • AsyncMemory mirrors the same surface with await on every call.

The raw AetherClient below is the lower-level API — use it when you need direct control over documents, search, and batch operations rather than entity-scoped memory.

Quick Start

from aether import AetherClient

client = AetherClient(api_key="aether_your_key_here")

# Insert a file — content type is auto-detected from the extension
doc = client.insert("report.pdf")
print(f"Inserted: {doc.doc_id}")

# Insert raw text
doc = client.insert_text("Some text content to index")

# Search
results = client.search("machine learning", k=5)
for r in results:
    print(f"  {r.doc_id} (score: {r.score}) - {r.passage}")

# List documents
for doc in client.list():
    print(f"  {doc.doc_id}: {doc.title}")

Per-user permissions & audit

Restrict who can read a document, then scope a client to act on behalf of a principal so reads are filtered by each document's ACL:

from aether import AetherClient, PrincipalPinMismatchError

client = AetherClient(api_key="aether_your_key_here")

# Write with a read-ACL — only alice and the eng group can read this document.
# Omit acl_readers (or pass []) for the admin-only default.
doc = client.insert_text(
    "Q3 board deck notes",
    acl_readers=["user:alice", "group:eng"],
)

# Act as a principal: searches and reads only surface documents this principal
# is allowed to see. Composes with client.partition(...).
alice = client.as_principal("user:alice", groups=["group:eng"])
for r in alice.search("board deck", k=5):
    print(r.doc_id, r.score)

# Query the tenant's access-audit log (requires audit capture to be enabled).
page = client.audit.access(action="read", limit=100)
print(f"{page.total} read events")
for rec in page:
    print(rec.at, rec.actor, rec.action, rec.resource)

A principal-pinned API key that is asked to assert a different principal raises PrincipalPinMismatchError. AsyncAetherClient mirrors the same surface with await.

Supported File Formats

Aether automatically extracts clean text from binary documents before embedding. No need to specify content_type -- it's guessed from the file extension.

Format Extensions
PDF .pdf
Word .docx, .doc
PowerPoint .pptx, .ppt
Excel .xlsx, .xls
HTML .html, .htm
CSV .csv
Plain text .txt, .md, .json, .xml

Binary-format parsing is handled automatically server-side — no setup required.

RAG Quick Start

Use retrieve() to search and get document content in a single call -- ready to pass into any LLM:

from aether import AetherClient

client = AetherClient(api_key="your_key")

# Insert documents (PDF, DOCX, XLSX — all auto-detected)
client.insert("company-handbook.pdf")
client.insert("benefits-guide.docx")
client.insert_text("Remote work is allowed 3 days per week...")

# Retrieve relevant documents with content
results = client.retrieve("How much PTO do I get?", k=3)
for r in results:
    print(f"{r.title}: {r.content[:100]}...")

For complete RAG examples with Anthropic, OpenAI, Azure, and more, see examples/.

Async Processing

For large files or frontend integrations that need progress feedback, use the async REST endpoint:

import httpx, time

resp = httpx.post(
    "https://api.aetherdb.ai/documents/async?filename=report.pdf",
    content=open("report.pdf", "rb").read(),
    headers={"Authorization": "Bearer aether_..."},
)
job = resp.json()  # {"job_id": "...", "poll_url": "/documents/jobs/..."}

while True:
    status = httpx.get(
        f"https://api.aetherdb.ai{job['poll_url']}",
        headers={"Authorization": "Bearer aether_..."},
    ).json()
    print(f"{status['progress']:.0%} - {status['message']}")
    if status["status"] in ("completed", "failed"):
        break
    time.sleep(0.5)

CLI

aether-py status
aether-py insert document.pdf
aether-py search "your query"
aether-py list

License

MIT

Memory files

Memory files are named, versioned markdown files kept per entity — for example a memory.md an agent reads at the start of a session and keeps up to date. Every change writes a new version; older versions stay readable and diffable.

files = mem.files  # scoped to the Memory's entity (and its client's partition)

files.write("memory.md", "# Acme memory\n\n## Agreed terms\n", create=True)

### Reading a document's text

`get_text()` returns the parsed, readable text of any stored document — the
original for text types, the caption or transcript for media, and text rebuilt
from the parsed passages for PDF/Office — paged and addressable by section:

```python
outline = client.get_text(doc_id, outline=True)
print([s.heading for s in outline.sections])

terms = client.get_text(doc_id, section="Payment terms")

page = client.get_text(doc_id, max_bytes=65536)
while page.truncated:
    page = client.get_text(doc_id, offset=page.next_offset, max_bytes=65536)

Document summaries

Ask for a summary at ingest with summarize=True — on insert, insert_text, insert_stream, insert_async and batch_insert (per batch or per item), or as a Memory(..., summarize=True) default with a per-call remember(..., summarize=...) override. The summary is generated in the background after the insert commits and never fails or delays it; the returned record's summary is "pending" or "skipped". summarize=False opts out of a tenant default; leaving it unset applies that default.

doc = client.insert("contract.pdf", summarize=True)

s = client.get_summary(doc.doc_id)
print(s.state)    # none | pending | ready | failed | skipped | unsupported
print(s.content)  # the stored summary markdown, if any (readable even while pending)
print(s.stale)    # True when the document changed after the summary was written

Metadata

Release files for aether-ai 0.7.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aether-ai 0.7.0
File Size Uploaded Provenance Actions
aether_ai-0.7.0.tar.gz 170.6 kB With provenance Details for aether_ai-0.7.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for aether-ai 0.7.0
File Interpreter ABI Platform Actions
aether_ai-0.7.0-py3-none-any.whl Python 3 none any Details for aether_ai-0.7.0-py3-none-any.whl

Total release size: 280.3 kB

Release files / aether_ai-0.7.0.tar.gz

Download URL aether_ai-0.7.0.tar.gz
Size 170.6 kB
Tags Source
SHA-256 checksum
How to use checksums
475a32fe08fc46ce7f9f6fcc28e5f86e42bd61cb82fae8ae3ec7e7bfddb03132
BLAKE2b-256 checksum
How to use checksums
e025d080cc7af22247af463308e35619f70d05d865aa5d0b56b380a49585f2a9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Release files / aether_ai-0.7.0-py3-none-any.whl

Download URL aether_ai-0.7.0-py3-none-any.whl
Size 109.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5393c331850b594585335568937d8738b6c653d9764b31378d8a16b88660dfde
BLAKE2b-256 checksum
How to use checksums
d27bfba598a31032590c8b9cbaa124a44378ca155902d29ae2a4bf79564e3335
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

Security for aether-ai 0.7.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for aether_ai-0.7.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 23, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page