Skip to main content

A lightweight AI Agent framework with ReAct loop, tool calling, and memory

Project description

Lukawi Agent

A lightweight, extensible AI Agent framework with ReAct loop, tool calling, memory, and knowledge base.

Features

  • ReAct Loop Agent — reasoning + acting with automatic tool calling
  • Streaming Chat — token-by-token real-time output in WebUI
  • Tool System — built-in tools: web fetch, file operations, shell commands
  • Extensible Skills — drop SKILL.md files to teach the agent new abilities
  • MCP Protocol — connect external tool servers (sequential thinking, code context, etc.)
  • Memory — session-based short-term + persistent long-term memory with search
  • RAG Knowledge Base — upload documents, semantic search via DashScope embeddings
  • WebUI — React-based chat interface with model switching, session management
  • TUI — terminal-based interactive REPL with Rich formatting

Quick Start

1. Install

pip install lukawi

2. Initialize

lukawi-init

This interactive wizard will ask for:

  • DeepSeek API Key (required for LLM)
  • DashScope API Key (optional, for RAG / knowledge base)
  • MCP Servers (optional, for extra tools)

3. Launch

# Web UI (recommended)
lukawi webui

# Terminal REPL
lukawi

Open http://localhost:50109 in your browser.

4. Add Skills (optional)

Drop SKILL.md files into the skills/ directory:

skills/
├── my-skill/
│   └── SKILL.md

Configuration

All configuration is read from config/default.yaml. Override via environment variables or a .env file:

DEEPSEEK_API_KEY=sk-...
DEEPSEEK_BASE_URL=https://api.deepseek.com/v1
DASHSCOPE_API_KEY=sk-...

MCP servers are configured in ~/.lukawi/mcp-servers.json.

Keyboard Shortcuts

Shortcut Action
Ctrl+B Toggle sidebar
Ctrl+L Clear chat
Enter Send message
Shift + Enter New line
/ Command mode

Development

git clone https://github.com/lukawi-team/lukawi.git
cd lukawi
pip install -e ".[dev]"

# Run tests
pytest

# Build frontend
cd web && npm install && npm run build

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

lukawi-0.1.0.tar.gz (182.7 kB view details)

Uploaded Source

File details

Details for the file lukawi-0.1.0.tar.gz.

File metadata

  • Download URL: lukawi-0.1.0.tar.gz
  • Upload date:
  • Size: 182.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for lukawi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 73778d21172ee45570a54ace613d2f6a6a9b74094d653fd35c2272df675d84a2
MD5 8027bd6ca5936e1adb1243bddbc909eb
BLAKE2b-256 2a3c024b5b8f3b8be62fc76fd42ba564c944c0c1690c4d8c0dd24f566504c135

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