@bniladridas/linea
v0.3.27
Published
Local-first AI assistant
Maintainers
Readme
Linea
Local-first AI assistant. Chats with LLMs, searches the web, manages files, automates local dev tasks. Runs on your machine.
brew install linea
lineaEverything runs locally. No data leaves your network unless you explicitly use web search or third-party models.
Setup
- Install Go 1.21+, Node.js 18+, and PostgreSQL.
- Create the database:
createdb linea createuser linea psql -c "ALTER USER linea WITH PASSWORD 'linea';" psql -c "GRANT ALL ON DATABASE linea TO linea;" - Copy
.env.exampleto.envin the repo root. Add a Gemini API key:GEMINI_API_KEY=your-key-here - Build and start:
make start - Open http://localhost:8080.
Skip Postgres with make start NODB=1.
Quick Start
| Method | Command |
| :--- | :--- |
| Homebrew | brew install linea && linea |
| npm | npm i -g @bniladridas/linea && linea |
| Source | git clone ... && cd linea && make start |
CLI
linea Start the web server
linea tui Terminal chat interface
linea daemon Background daemon
linea check Health checks
linea status Daemon status
linea migrate Database migrations
linea version Print version
linea help Show helpConfiguration
Set variables in ~/.config/linea/linea.env or as env vars.
| Variable | Default | Description |
| :--- | :--- | :--- |
| API_ADDR | 127.0.0.1:8080 | Server bind address |
| GEMINI_API_KEY | - | Gemini API key |
| GEMINI_MODEL | gemini-2.5-flash-lite | Model ID |
Full reference in docs/reference.md.
Integrations
- GitHub MCP -- issues, PRs, code search
- GitLab MCP -- issues, MRs, code search
- Google MCP -- Gmail, Calendar, Drive
- OAuth setup -- connect GitHub, GitLab, Google accounts
Platforms
| Platform | Method |
| :--- | :--- |
| macOS | brew install linea or Releases |
| Android | Build from source |
| iOS | Build from source |
Troubleshooting
linea daemon --debug # verbose output
~/.cache/linea/audit.jsonl # audit logLicense
MIT.
