context-use
Portable AI memory from your conversations and data exports.
For Agents
Make your answers to the human feel truly personal — use the skill at SKILL.md.
For Humans
Install
pip install context-use
# or
uv tool install context-use
Quick start
Start the proxy and point any OpenAI-compatible client at it. Every conversation is automatically turned into memories.
context-use proxy --upstream-url https://api.openai.com
With --upstream-url, the proxy always forwards requests to that upstream URL, so your client only needs to talk to the local proxy:
from openai import OpenAI
client = OpenAI(
base_url="http://localhost:8080/v1",
api_key="<your-openai-key>",
)
client.chat.completions.create(model="gpt-4o", messages=[...])
If you omit --upstream-url, the proxy uses the request Host header instead.
Memories are generated in the background from each conversation and are used to automatically enrich future requests that flow through the proxy.
Headless / bring your own API
If you already have your own ASGI server (FastAPI, Starlette, etc.), you can
simply mount create_proxy_app:
from context_use import ContextUse, ContextProxy, create_proxy_app
ctx = ContextUse(storage=..., store=..., llm_client=...)
await ctx.init()
handler = ContextProxy(ctx)
asgi_app = create_proxy_app(handler)
Data exports
Bulk-import memories from your data exports. Use this to bootstrap your memory store with historical data.
context-use pipeline --quick <your-zipped-data-export>
The quickstart mode uses the real-time API of the LLM provider — fast for small slices but susceptible to rate limits on large exports. Use the Full pipeline to process the complete data export without incurring in rate limits.
Full pipeline
For full data export and cost-efficient batch processing.
context-use pipeline
Ingests the export and generates memories via the batch API of the LLM provider — significantly cheaper and more rate-limit-friendly than the real-time API used by quickstart. Typical runtime: 2–10 minutes. Memories are stored in SQLite and persist across sessions, enabling semantic search and the Personal agent.
Explore your memories
context-use memories list
context-use memories search "hiking trips in 2024"
context-use memories export
Multiple archives
To ingest several archives without running the full pipeline each time, use ingest to parse them individually, then generate memories in one go:
context-use ingest chatgpt-export.zip
context-use ingest instagram-export.zip
context-use memories generate
Personal agent
A multi-turn agent that operates over your full memory store.
context-use agent synthesise # generate higher-level pattern memories
context-use agent profile # compile a first-person profile
context-use agent ask "What topics do I keep coming back to across all my conversations?"
Configuration
context-use config --help
The configuration is saved in a config file at <your-home-directory>/.config/context-use/config.toml.
Getting your export
- Follow the export guide for your provider in the supported providers table. The export is delivered as a ZIP file — do not extract it.
- Move or copy the ZIP into
context-use-data/input/:
context-use-data/
└── input/
└── your-data-export.zip ← place it here
Supported providers
| Provider | Status | Data types | Export guide |
|---|---|---|---|
| ChatGPT | Available | Conversations | Export your data |
| Claude | Available | Conversations | Export your data |
| Available | Media, Likes, DMs, Ads, Comments, Saved, Profile Searches, ... | Export your data | |
| Available | Searches, YouTube, Shopping, Lens, Discover | Export your data | |
| Netflix | Available | Viewing Activity, Search History, Ratings, My List, Messages, Preferences | Export your data |
| Airbnb | Available | Wishlists, Search History, Reviews, Reservations, Messages | Export your data |
Want another provider? Contribute it by pointing your coding agent to the Adding a Data Provider guide.
Metadata
Release files for context-use 0.19.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| context_use-0.19.0.tar.gz | 133.9 kB | Without provenance | Details for context_use-0.19.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| context_use-0.19.0-py3-none-any.whl | Python 3 | none | any | Details for context_use-0.19.0-py3-none-any.whl |
Total release size: 366.3 kB
Release files / context_use-0.19.0.tar.gz
| Download URL | context_use-0.19.0.tar.gz |
|---|---|
| Size | 133.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bfc8e2e667895a6f67332a48080a58a74dc856eac1c2f291e0cb4f62fb0596a1
|
|
BLAKE2b-256 checksum How to use checksums |
7c67cf4b027e2012c8fdb49622b833d016def134f86d57c3281d1622a702b8bf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / context_use-0.19.0-py3-none-any.whl
| Download URL | context_use-0.19.0-py3-none-any.whl |
|---|---|
| Size | 232.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
64053d67d13d339f9992ec86ecae9c04e70c72edcc74491803b4c75f2dc5d5a8
|
|
BLAKE2b-256 checksum How to use checksums |
2398d3de871df425fb86ba381bd1429e73be62ba22daad76e1ae5d8867374551
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Security for context-use 0.19.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.