Self-hosted FastAPI backend and Linux/macOS service CLI for SaveMyContext
Project description
SaveMyContext Server
Self-hosted FastAPI backend and Linux/macOS service CLI for SaveMyContext.
Install As a Tool
Recommended user flow on Linux and macOS:
uv tool install savemycontext
smc install
The package name is savemycontext. It installs both smc and savemycontext command aliases; the docs use smc.
On Linux, smc install writes a systemd --user service. On macOS, it writes a per-user launchd agent. If one machine should serve other devices, use:
smc install --remote
Remote setup starts the backend, enables managed remote exposure, and prints a smc_conn_1_... connection string for the extension.
Useful commands:
smc status
smc logs -f
smc config path
smc doctor
Processing
SaveMyContext captures and stores conversations without an AI key. Add an OpenAI-compatible or Google key when you want richer summaries, classification, and graph extraction.
Recommended OpenRouter settings:
smc config set \
--openai-api-key your_openrouter_key \
--openai-base-url https://openrouter.ai/api/v1 \
--openai-model google/gemma-4-31b-it:free \
--openai-model-fallbacks google/gemma-4-26b-a4b-it:free,google/gemma-3-27b-it:free,google/gemma-3-12b-it:free,google/gemma-3-4b-it:free,google/gemma-3n-e4b-it:free,google/gemma-3n-e2b-it:free,openai/gpt-4.1-mini
You can also edit the generated env file directly:
- Linux:
~/.config/savemycontext/savemycontext.env - macOS:
~/Library/Application Support/savemycontext/savemycontext.env
Browser automation is experimental and disabled by default.
Vault And To-Do Versioning
SaveMyContext writes the Obsidian vault under markdown/SaveMyContext, keeps a shared Dashboards/To-Do List.md, and initializes a local git repository in that vault by default. Session notes, dashboards, graph files, and to-do updates are committed automatically.
Run In the Foreground
smc config init
smc run
Development
Run the local development server from source with:
uv sync --group dev
uv run python -m app.dev
Run the backend tests with:
uv run --group dev python -m pytest -q
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file savemycontext-0.2.4.tar.gz.
File metadata
- Download URL: savemycontext-0.2.4.tar.gz
- Upload date:
- Size: 140.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
57e0ba4735b5212f1ffd8ca4704be3c0a3399a655d5700e8b2554b1ba89beb3b
|
|
| MD5 |
eab5ca7ea6cd840b6a39fdab71e9ff15
|
|
| BLAKE2b-256 |
e40f107b036bb2a9632136f6a03df36877b5902cc837ba265ff5059210843c42
|
File details
Details for the file savemycontext-0.2.4-py3-none-any.whl.
File metadata
- Download URL: savemycontext-0.2.4-py3-none-any.whl
- Upload date:
- Size: 183.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ecb06f685d74d7d3e6b4b39b88bbeccc7c7248f56f95d11c3e405ea940d23853
|
|
| MD5 |
9ca4721455cdbe433474237da30495d8
|
|
| BLAKE2b-256 |
bca49f52c1bcd0e4e790234adfdb727bcb5eddf3b837ab6f7a8ee471a0738936
|