Skip to main content

Remora Python SDK (remora-ai)

Developer-first AI Memory Infrastructure Client for persistent, evolving agent memory.


📦 Installation

pip install remora-ai

(Note: The client uses Python standard library urllib internally, requiring zero extra dependencies!)


🚀 Quickstart

from remora import RemoraClient

remora = RemoraClient(
    api_key="rl_live_your_key_here",
    base_url="http://localhost:3000"  # Defaults to http://localhost:3000
)

# 1. Ingest a conversation (async extraction with zero chatbot latency)
remora.ingest(
    user_id="usr_alice",
    messages=[
        {"role": "user", "content": "I am building a SaaS using Python and PostgreSQL."}
    ]
)

# 2. Retrieve compact prompt-ready context before replying
ctx = remora.context(
    user_id="usr_alice",
    query="What tech stack should I recommend?"
)

print(ctx.context_text)
# Output:
# Relevant user memories:
# - User is building a SaaS using Python and PostgreSQL.
# Use these memories only when relevant.

# 3. Direct memory search with hybrid ranking scores
memories = remora.search(
    user_id="usr_alice",
    query="programming language and database"
)

for m in memories:
    print(f"- {m.content} (Score: {m.final_score})")
    print(f"  Similarity: {m.score_breakdown.semantic_similarity}")

🤖 Integration with OpenAI / LangChain

from openai import OpenAI
from remora import RemoraClient

remora = RemoraClient(api_key="rl_live_...")
openai = OpenAI()

user_id = "usr_alice"
user_message = "What database should I choose?"

# 1. Fetch relevant persistent memories
ctx = remora.context(user_id=user_id, query=user_message)

# 2. Inject context into system prompt
system_prompt = f"You are a helpful coding copilot.\n\n{ctx.context_text}"

response = openai.chat.completions.create(
    model="gpt-4o",
    messages=[
        {"role": "system", "content": system_prompt},
        {"role": "user", "content": user_message}
    ]
)

print(response.choices[0].message.content)

# 3. Asynchronously ingest the turn for future memory formation
remora.ingest(
    user_id=user_id,
    messages=[
        {"role": "user", "content": user_message},
        {"role": "assistant", "content": response.choices[0].message.content}
    ]
)

📚 API Reference

  • remora.add(user_id, content, namespace="default", type="FACT", importance=0.5)
  • remora.search(user_id, query, limit=5)
  • remora.context(user_id, query, limit=5)
  • remora.ingest(user_id, messages, sync=False)
  • remora.get(memory_id)
  • remora.update(memory_id, content="...")
  • remora.delete(memory_id)
  • remora.delete_user_memories(user_id): GDPR / Privacy wipe
  • remora.export_user_memories(user_id): Data portability export

Metadata

Release files for remora-ai 0.1.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 remora-ai 0.1.0
File Size Uploaded Provenance Actions
remora_ai-0.1.0.tar.gz 6.2 kB Without provenance Details for remora_ai-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for remora-ai 0.1.0
File Interpreter ABI Platform Actions
remora_ai-0.1.0-py3-none-any.whl Python 3 none any Details for remora_ai-0.1.0-py3-none-any.whl

Total release size: 13.0 kB

Release files / remora_ai-0.1.0.tar.gz

Download URL remora_ai-0.1.0.tar.gz
Size 6.2 kB
Tags Source
SHA-256 checksum
How to use checksums
6faae80417bfa487b831af30715e6171d9b098ccff0e834887da0a5305ea28cc
BLAKE2b-256 checksum
How to use checksums
2bfee36e2bc2474afcea8c59587777b3324c0aa8d76bf32f7648d7c2ca042270
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / remora_ai-0.1.0-py3-none-any.whl

Download URL remora_ai-0.1.0-py3-none-any.whl
Size 6.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bc4bb45e0b0df82f0d41df67d09987200a138c82ea7c98486be82e0b558fe2f3
BLAKE2b-256 checksum
How to use checksums
1b99903e901938e1b63add21627cca48b8331f0cfb8e24d634ae732ff1a7854a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for remora-ai 0.1.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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