Skip to main content

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.example files 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:

  1. Clone the repository into ./test-clone
  2. Detect the technology stack (e.g. Node.js, Python)
  3. Launch the LangChain Agent to investigate the codebase.
  4. Install all required dependencies (npm install, pip install, etc.)
  5. Configure environment variables (if .env.example is present)
  6. Start the local development server (e.g., npm run dev)
  7. Automatically detect and fix any deployment errors if the server fails to start!

How It Works

  1. Clone — The repo is cloned to the specified (or auto-generated) local path using GitPython.
  2. Detect — The stack detector inspects the repository files to identify languages and frameworks.
  3. 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!
  4. Done — The agent reports SETUP_COMPLETE and leaves the server running for you.

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

locally796-0.2.0.tar.gz (19.0 kB view details)

Uploaded Source

Built Distribution

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

locally796-0.2.0-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file locally796-0.2.0.tar.gz.

File metadata

  • Download URL: locally796-0.2.0.tar.gz
  • Upload date:
  • Size: 19.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for locally796-0.2.0.tar.gz
Algorithm Hash digest
SHA256 2c95d4f5fbac550152e6ed49afec81379b1673f4753b07097ce2240dae372460
MD5 21257cfdb8ab4ad83975cd8e05558e81
BLAKE2b-256 749a7a92dfbb7fecef71842b74fca24881c68ba6e82dadff2637965276206195

See more details on using hashes here.

File details

Details for the file locally796-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: locally796-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.0

File hashes

Hashes for locally796-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b47d1552b2a14f29cdfd20b17f6cdcb870bd3af1aec3e84c4ceb47946ee9d167
MD5 c7225b338003cf0cf62a5e36e5b36800
BLAKE2b-256 5d5e4820f413f15f0bfbab2d63102e3da1b64ab5a1e28862f46720d577d3b55f

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