AI-powered CLI tool to setup GitHub repositories locally
Project description
Locally796
Locally796 is an AI-powered CLI tool that automatically clones any GitHub repository and sets it up on your local machine — no manual configuration needed. Powered by a LangChain agent, it detects the project stack, installs dependencies, configures environment variables, and runs the project for you.
Features
- 🤖 AI-Driven Setup — A LangChain agent acts as a senior DevOps engineer, analysing the repository, running the right install commands, and resolving errors automatically.
- 🔍 Stack Detection — Automatically identifies the project stack (Node.js, Python, Go, etc.) and applies the appropriate setup steps.
- ⚙️ Dependency Installation — Runs
npm install,pip install -r requirements.txt,go mod tidy, and similar commands as needed. - 🌿 Environment Configuration — Detects
.env.examplefiles and sets up environment variables for you. - 🚀 Project Launch — Starts the project after setup and confirms it is running.
- 📦 pip Package — Distributed as a Python package, so you can install and use it anywhere with a single command.
Requirements
- Python 3.11 or higher
- A Groq API key to power the AI agent.
Installation
You can install locally796 globally using pip:
pip install locally796
(Alternatively, to install from source: clone this repo and run pip install -e . inside the folder.)
Setup Your API Key
Before using locally796 for the first time, you need to configure your Groq API key. The agent defaults to llama-3.3-70b-versatile, which is available for any standard Groq account.
locally796 set-key <YOUR_GROQ_API_KEY>
This securely saves your key in a global config file (~/.locally796/.env), meaning you can run the tool from anywhere on your system without having to set up .env files manually.
Usage
locally796 [GITHUB_REPO_URL] --path [CLONING_PATH]
Arguments
| Argument | Description |
|---|---|
GITHUB_REPO_URL |
The full URL of the GitHub repository to clone and set up |
--path / -p |
(Optional) Local directory path where the repo will be cloned. Defaults to a folder named after the repo in the current directory |
Example
locally796 https://github.com/prathmesh796/pubsubs --path ./test-clone
This single command will autonomously:
- Clone the repository into
./test-clone - Detect the technology stack (e.g. Node.js, Python)
- Launch the LangChain Agent to investigate the codebase.
- Install all required dependencies (
npm install,pip install, etc.) - Configure environment variables (if
.env.exampleis present) - Start the local development server (e.g.,
npm run dev) - Automatically detect and fix any deployment errors if the server fails to start!
How It Works
- Clone — The repo is cloned to the specified (or auto-generated) local path using GitPython.
- Detect — The stack detector inspects the repository files to identify languages and frameworks.
- Agent Setup — A LangChain agent equipped with shell, file-read, and file-write tools executes the full setup autonomously. If a command fails or crashes, the agent reads the error output, figures out the fix, and retries until success!
- Done — The agent reports
SETUP_COMPLETEand leaves the server running for you.
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file locally796-0.1.0.tar.gz.
File metadata
- Download URL: locally796-0.1.0.tar.gz
- Upload date:
- Size: 10.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1df7bd8ca1a937a26eae27c8d1edbed6b1cbd2f4ff895f11429117628bb27392
|
|
| MD5 |
8c449040a8f3670d194fdac4cc37d2dc
|
|
| BLAKE2b-256 |
02f57c84f4f1d443694d17a4fd555d2015cc5dac9a35bc0596f61b32878a45db
|
File details
Details for the file locally796-0.1.0-py3-none-any.whl.
File metadata
- Download URL: locally796-0.1.0-py3-none-any.whl
- Upload date:
- Size: 12.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0f6d04efb423773edac1493365d4aa60805c8ec7d2dfce8d479f3260cac25422
|
|
| MD5 |
d6c1e03dd384e5019177e2556f97a329
|
|
| BLAKE2b-256 |
e26defc9293d5664158887031999b1d9df4e5759bce7cfd761a1cdbd388fa340
|