Skip to main content

Stop Rebuilding Context. Start Shipping Faster.

cachly Python SDK — The cache that remembers everything so your AI assistant doesn't have to start from scratch every morning.

PyPI Python 3.10+ License: MIT GDPR: EU-only


The Problem Nobody Talks About

You open Cursor. You ask it to continue where you left off. It doesn't know what "where you left off" means.

You explain your architecture. Again.
You explain why you use that pattern. Again.
You explain the bug you fixed last Tuesday. Again.

The average developer wastes 45 minutes per day just re-establishing context with their AI assistant. That's 3.5 hours a week. 180 hours a year. Gone.

And then there's the infrastructure tax: your AI hits your database for every request. Your LLM bills are exploding. Your p99 is embarrassing. Your GDPR officer won't stop emailing you about US data residency.


cachly fixes both.

Two products. One connection string. Zero ops.


🧠 AI Dev Brain — Your AI Assistant's Permanent Memory

Give Claude Code, Cursor, GitHub Copilot, and Windsurf a brain that persists across every session, every machine, every restart:

npx @cachly-dev/init

From this moment, your AI assistant will:

  • Remember every bug fix and the exact command that solved it
  • Know your architecture without you explaining it again
  • Resume work exactly where you left off, every single session
  • Reuse known solutions instead of re-researching — saving ~1,200 tokens per recall

Before cachly: "Let me analyze your codebase... reading 47 files..."
After cachly: "Last session: deployed blue/green API, 23 lessons stored. Ready."

Configure in ~/.vscode/mcp.json, .cursor/mcp.json, or .mcp.json:

{
  "servers": {
    "cachly": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cachly-dev/mcp-server"],
      "env": { "CACHLY_JWT": "your-jwt-token" }
    }
  }
}

→ Full docs: cachly.dev/docs/ai-memory


⚡ Managed Cache — Sub-millisecond, GDPR-Compliant, German Servers

Installation

pip install cachly
# or
uv add cachly

Quick Start

import os
from cachly import CachlyClient

cache = CachlyClient(url=os.environ["CACHLY_URL"])

# Cache LLM responses, user sessions, computed results
cache.set("user:42", {"name": "Alice"}, ttl=300)
user = cache.get("user:42")

# Get-or-Set: never hit the DB twice
report = cache.get_or_set("report:monthly", lambda: db.run_expensive_report(), ttl=3600)

# Atomic counter
views = cache.incr("page:views")

cache.close()

Create your free instance → No credit card. Live in 30 seconds.


With vs. Without cachly

Situation Without cachly With cachly
AI session start 5–10 min re-explaining context < 10 sec, full context loaded
Same DB query, 1000 req/s 1,000 DB hits 1 DB hit, 999 cache hits
LLM API costs for repeated prompts Pay every time Pay once, cache the rest
GDPR compliance for EU users Data leaves EU (US Redis) Data stays in Germany, always
Infra setup Days of ops work 30 seconds, zero ops
Architecture knowledge after holiday Starts from zero Fully briefed in seconds
Debugging a known issue Re-research from scratch Instant: "you fixed this on March 12"
p99 latency (uncached) 200–800ms (DB) < 1ms (cache hit)

Semantic Cache — Cut LLM Costs by 40–70%

Stop paying for the same answer twice:

sem = cache.semantic_cache(embed_fn=openai.embed, threshold=0.92, ttl=86400)

result = sem.get(user_query)
if result is None:
    answer = call_your_llm(user_query)
    sem.set(user_query, answer)

👥 Team Brain — Shared AI Memory for Your Whole Team

One shared instance. Every developer gets smarter every day.

# .env — same instance for the whole team
CACHLY_INSTANCE_ID=your-shared-team-instance

# Alice fixes a bug, stores the lesson:
brain.learn_from_attempts(
    topic="deploy:k8s-timeout",
    outcome="success",
    what_worked="Increase readinessProbe.failureThreshold to 10",
    author="alice"
)

# Bob starts a session the next day:
brain.session_start()
# → "💡 alice solved deploy:k8s-timeout 1d ago: Increase readinessProbe..."

Set up a team org at cachly.dev/teams — Team €99/mo · 10 seats · Business €299/mo · 50 seats.


Pricing

Tier RAM Price Best for
Free 25 MB €0/mo Dev & side projects
Dev 200 MB €19/mo Startups, small apps
Pro 900 MB €49/mo Production workloads
Speed 900 MB Dragonfly + Semantic Cache €79/mo AI apps, high QPS
Business 7 GB €199/mo Scale-ups

All plans: German servers · GDPR-compliant · No US data transfer · 99.9% SLA


Metadata

Release files for cachly 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 cachly 0.1.0
File Size Uploaded
cachly-0.1.0.tar.gz 39.1 kB Details

Built distribution (wheel)

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

Total release size: 71.8 kB

Release files / cachly-0.1.0.tar.gz

Download URL cachly-0.1.0.tar.gz
Size 39.1 kB
Tags Source
SHA-256 checksum
How to use checksums
9c6fc1717a0711ac7f5a3a4ce262b00caf2245bd360b862d586ee3262dceb92b
BLAKE2b-256 checksum
How to use checksums
c211527df8ed37e2e6f09c4df57c44f0e2b41b3b64b3d42464426bb3301746c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

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

Download URL cachly-0.1.0-py3-none-any.whl
Size 32.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ac7e3cbe938ba9d4a2cb0eccc7a826b8f482decd5a113e9c2b55b9c132289b12
BLAKE2b-256 checksum
How to use checksums
bc887f8a14f87c76ca418e31dff46f0b50638fa494c91e2cd822d55b3bb26394
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.9.6

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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