Skip to main content

A local-first coding agent for the terminal, built on a native tool-calling ReAct engine.

Project description

Lovelaice

A sovereign, local-first coding agent for the terminal. Single ReAct loop over a small built-in tool set, yolo by default. Two modes:

  • Interactive — full-screen Textual TUI: lovelaice
  • One-shot — streams to stdout and exits: lovelaice <prompt>

Install

pipx install lovelaice

Configure

lovelaice --init writes a .lovelaice.py in the current directory. This file grounds the workspace: when you run lovelaice from any subdirectory, it walks up to the nearest .lovelaice.py and chdirs to its directory before running. Exactly one config grounds the workspace — there is no stacking.

Set OPENROUTER_API_KEY in your environment before running.

export OPENROUTER_API_KEY=sk-or-...
lovelaice

Commands and tools

The .lovelaice.py registers tools and commands as decorators on a Config object. Built-in tools: bash, read, write, edit, list, glob, grep, fetch. Add your own with @config.tool. See know-how/writing-a-tool.md and know-how/writing-a-command.md.

Thinking mode

Add thinking="high" (or "low"/"medium", or an integer token budget) on a model entry to enable OpenRouter's reasoning passthrough. Reasoning chunks render in a separate dim-italic panel above the agent's reply. Non-OpenRouter base URLs silently ignore the knob — v1 does not translate reasoning protocols across providers.

MCP

Pass mcp=[...] to Config(...) to spawn stdio MCP servers and register their tools. Tool names are prefixed mcp:<server>:<tool>.

config = Config(
    models=MODELS,
    prompt=PROMPT,
    mcp=[
        {"name": "filesystem", "command": "npx",
         "args": ["@modelcontextprotocol/server-filesystem", "."]},
    ],
)

License

MIT.

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

lovelaice-2.4.0.tar.gz (174.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

lovelaice-2.4.0-py3-none-any.whl (45.2 kB view details)

Uploaded Python 3

File details

Details for the file lovelaice-2.4.0.tar.gz.

File metadata

  • Download URL: lovelaice-2.4.0.tar.gz
  • Upload date:
  • Size: 174.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for lovelaice-2.4.0.tar.gz
Algorithm Hash digest
SHA256 66f70d3095bf36098612d4db4d9d75507903e71e2a338431d3dac7daf084bb70
MD5 c4f932b4f4bca2cb3903ec827785d27a
BLAKE2b-256 a807885e0376c4f9fb5e6f149598d74808384e26661396d957ee3e0b5c55bfba

See more details on using hashes here.

File details

Details for the file lovelaice-2.4.0-py3-none-any.whl.

File metadata

  • Download URL: lovelaice-2.4.0-py3-none-any.whl
  • Upload date:
  • Size: 45.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: uv/0.11.26 {"installer":{"name":"uv","version":"0.11.26","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}

File hashes

Hashes for lovelaice-2.4.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d892bf3d45000b57ff8ca78f2e53b2525b872dc19bd28c4f6deb7396fd61546f
MD5 a36ce22264b62ebc3e541b8c6e4e36ff
BLAKE2b-256 df01d30b2c5de33b4ef25b9568aa9ba1fa921d0fafca47e860f68536c0841b00

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page