Skip to main content

AI-powered terminal shell with real-time autocomplete and natural language commands

Project description

lac-cli

lac-cli is a terminal shell built by lacai.io that brings AI directly into your command line. It autocompletes what you are typing in real time and understands plain English so you can describe what you want to do instead of memorizing commands.

Install

pip install lac-cli

Getting Started

Run lac to launch the shell. The first time you run it, a setup wizard will walk you through picking your AI provider and entering your API key. After that it goes straight to the shell every time.

lac

To redo the setup at any time:

lac --setup

To run without an internet connection or server:

lac --offline

How It Works

When you launch lac, it automatically starts a local server in the background that handles communication with your AI model. You do not need to start anything manually.

As you type, the shell sends your input to the AI and shows a suggested completion as ghost text. Press Tab to accept it. If you type something in plain English like "show all files bigger than 100mb", the shell converts it to the right command and asks you to confirm before running it.

Supported Providers

Provider Notes
claude Anthropic API
openai OpenAI API
ollama Local models, no API key needed
custom Any OpenAI compatible endpoint

Commands

Command What it does
exit Quit the shell
logout Delete your config and start fresh
clear Clear the screen
cd <path> Change directory

Config

Your config is saved at ~/.lac/config.json after setup. You can edit it directly if needed.

{
  "provider": "claude",
  "api_key": "sk-...",
  "model": "claude-haiku-4-5-20251001",
  "base_url": "https://api.anthropic.com",
  "server": "ws://localhost:8765"
}

Features

  • Ghost text autocomplete as you type, powered by your AI model
  • Plain English to shell command conversion with confirmation before running
  • Works with any major AI provider or local models via Ollama
  • Offline mode falls back to history and static completions
  • Local server starts automatically in the background, no manual setup needed
  • Logout clears your credentials and resets the config

About

lac-cli is part of lacai.io. Built for developers who live in the terminal.

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

lac_cli-0.1.1.tar.gz (15.5 kB view details)

Uploaded Source

Built Distribution

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

lac_cli-0.1.1-py3-none-any.whl (16.8 kB view details)

Uploaded Python 3

File details

Details for the file lac_cli-0.1.1.tar.gz.

File metadata

  • Download URL: lac_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 15.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for lac_cli-0.1.1.tar.gz
Algorithm Hash digest
SHA256 8928e6b07da7e2aad805ba57e3e71182237a50e58923f9eb145a26d6731340be
MD5 f937f516b749a7e1f5eeb42c50c935dc
BLAKE2b-256 049dcda7a7cb3b769829316afc07a3b2e57b9979640b18b8e67440ff93c78248

See more details on using hashes here.

File details

Details for the file lac_cli-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: lac_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 16.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.12

File hashes

Hashes for lac_cli-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fe5d0c149a51f20e36cfaeb10ca043cad627a483a04dedace232ab21aefacc5a
MD5 69330c13d8932b5a4c8c69748746d555
BLAKE2b-256 c2c50afad3c8fea745348c82f2b9364e3a83199cc714839b677f1bffd9f5cfec

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