Metadata-Version: 2.4
Name: savemycontext
Version: 0.2.1
Summary: Self-hosted FastAPI backend and Linux service CLI for SaveMyContext
Requires-Python: >=3.12
Description-Content-Type: text/markdown
Requires-Dist: aiosqlite>=0.21.0
Requires-Dist: fastapi>=0.115.0
Requires-Dist: greenlet>=3.2.4
Requires-Dist: httpx>=0.28.1
Requires-Dist: orjson>=3.10.0
Requires-Dist: python-dotenv>=1.1.1
Requires-Dist: pwdlib[argon2]>=0.3.0
Requires-Dist: pydantic-settings>=2.10.1
Requires-Dist: sqlalchemy>=2.0.44
Requires-Dist: uvicorn[standard]>=0.35.0
Requires-Dist: uvloop>=0.22.1; platform_system != "Windows"

# SaveMyContext Server

Self-hosted FastAPI backend and Linux service CLI for SaveMyContext.

## Install As a Tool

Recommended user flow on Linux:

```bash
uv tool install savemycontext
savemycontext service install --start
```

That installs the backend as an isolated `uv` tool, writes config under `~/.config/savemycontext/`, stores runtime data under `~/.local/share/savemycontext/`, and registers a `systemd --user` service.

Useful commands:

```bash
savemycontext service status
savemycontext service logs -f
savemycontext config path
savemycontext doctor
```

## Processing

Recommended OpenRouter env settings:

```bash
SAVEMYCONTEXT_OPENAI_API_KEY=your_openrouter_key
SAVEMYCONTEXT_OPENAI_BASE_URL=https://openrouter.ai/api/v1
SAVEMYCONTEXT_OPENAI_MODEL=openai/gpt-4.1-mini
```

Browser automation is experimental and disabled by default.

For `savemycontext service install`, put those values in `~/.config/savemycontext/savemycontext.env`.

## 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

```bash
savemycontext run
```

## Development

Run the local development server from source with:

```bash
uv sync
uv run python -m app.dev
```
