Skip to main content

Local AI-agent for science & technology

Project description

Vedant Codex

A lightweight AI-powered coding assistant CLI inspired by tools like Codex and Cursor.

Vedant Codex allows developers to interact with an AI agent directly from the terminal to analyze projects, edit files safely, search codebases, and automate development tasks.

It integrates with Ollama and tool-enabled models to provide a local or hybrid AI coding workflow.


Features

  • AI coding assistant inside your terminal
  • Safe file editing using unified diff patches
  • File system access restricted to allowlisted directories
  • Native .docx Word document creation and editing
  • Native .pptx PowerPoint creation and editing
  • Native .xlsx Excel workbook creation and editing
  • Native image inspection and OCR-style readability
  • Browser automation for real webpage interaction
  • Built-in tools:
    • create files
    • read files
    • read Word documents (.docx)
    • read PowerPoint decks (.pptx)
    • read Excel workbooks (.xlsx)
    • inspect images (.png, .jpg, .jpeg, .webp, .gif, .bmp, .tiff)
    • browser automation (open, inspect, click, type, select, wait, read, scroll, back, keypress, screenshot)
    • search files
    • list project structure
    • apply patches
    • write Word documents (.docx)
    • write PowerPoint decks (.pptx)
    • write Excel workbooks (.xlsx)
    • run commands
    • open files in browser
    • start development servers
    • web search
  • Supports tool-calling capable models
  • Session logging
  • Rolling token-based quota window
  • Cross-platform support

Installation

Recommended (pipx)

Install using pipx for isolated CLI environments.

  1. pip install pipx
  2. pipx ensurepath
  3. pipx install vedant-codex

Alternative (pip)

  1. pip install vedant-codex

Run

  1. vedant

Prerequisites

-Python (Python 3.10 or newer is recommended.)

-Ollama (Vedant Codex requires Ollama to run AI models.)

Install Ollama:

https://ollama.com/download

Initialize and download ollama.exe.

Usage

Start the assistant: vedant

Example prompts:

Create a login.html page with modern glassmorphism UI Search for TODO comments in this repository Start a Python development server List files in this project

Configuration

Environment variables can customize behavior.

Example .env (default): MODEL=qwen3-coder:480b-cloud VISION_MODEL=qwen3-vl:235b-cloud OLLAMA_HOST=http://127.0.0.1:11434 ALLOWLIST_ROOTS={{add C:/Users/path/to/workingspace or implicitly give permission to model to use any path you want.}} DAILY_MAX_TOKENS=200000 BROWSER_MODE= BROWSER_CHANNEL= BROWSER_HEADLESS=0 BROWSER_USE_SAVED_PROFILE=0 BROWSER_USER_DATA_DIR= BROWSER_PROFILE_DIR= BROWSER_CDP_URL= COMMERCE_BROWSER_HEADLESS=0 COMMERCE_BROWSER_USER_DATA_DIR= COMMERCE_BROWSER_PROFILE_DIR=Default COMMERCE_DEFAULT_PAYMENT=cod

Browser automation requires Playwright browsers after install: python -m playwright install chromium

You can also drive an installed Microsoft Edge or Chrome browser channel. Useful browser settings:

  • BROWSER_MODE=background for a dedicated persistent automation profile
  • BROWSER_MODE=personal_edge to attach to a live personal Edge session over CDP
  • BROWSER_CHANNEL=msedge to prefer Microsoft Edge
  • BROWSER_HEADLESS=1 to keep browser automation in the background
  • BROWSER_USE_SAVED_PROFILE=1 to try reusing the browser's regular saved profile when supported
  • BROWSER_PROFILE_DIR=Default to target a specific browser profile inside the user data directory
  • BROWSER_USER_DATA_DIR=... to point at a dedicated browser user-data folder if you do not want to reuse the default profile
  • BROWSER_CDP_URL=http://127.0.0.1:9222 for the personal Edge attach endpoint

Commerce/browser-shopping defaults:

  • mode="commerce" opens a dedicated Microsoft Edge AI-agent profile instead of your personal profile
  • COMMERCE_BROWSER_USER_DATA_DIR=app\storage\browser-profiles\msedge-ai-agent to pin the dedicated Edge agent profile location
  • COMMERCE_BROWSER_PROFILE_DIR=Default to keep a single reusable profile directory inside that agent profile
  • COMMERCE_DEFAULT_PAYMENT=cod to make cash on delivery the default checkout preference
  • On the first commerce run, sign in manually once on the sites you use; the dedicated profile keeps those logins for later sessions

For reliable background shopping, prefer a dedicated automation profile over your everyday Edge Default profile. A common Windows setup is: BROWSER_MODE=background BROWSER_CHANNEL=msedge BROWSER_HEADLESS=1 BROWSER_USER_DATA_DIR=app\storage\browser-profiles\msedge-shopping

Use BROWSER_USE_SAVED_PROFILE=1 only if you explicitly want to try the normal Edge profile and are okay with launch failures when Edge is already open or the profile is locked.

For personal Edge mode, start Edge yourself with remote debugging enabled and then let the agent attach after you explicitly approve it. Example on Windows: msedge.exe --remote-debugging-port=9222

With that running, the agent can use mode="personal_edge" and your real logged-in Edge session.

From this repo on Windows cmd, the simplest launcher is: start-personal-edge-debug.cmd

Then verify the debug endpoint: curl http://127.0.0.1:9222/json/version

For real shopping and account flows, the browser agent can navigate, search, fill non-sensitive forms, add to cart, and reach checkout across sites like Amazon, Flipkart, and Myntra. It will stop before final payment or order placement unless the user explicitly confirms the risky step.

For commerce and travel flows in v0.3.0, the agent can also keep a dedicated Edge AI-agent profile for sites like amazon.in, flipkart.com, myntra.com, irctc.co.in, cleartrip.com, and makemytrip.com. Use browser_set_checkout_context plus browser_review_checkout so the agent tracks COD/card preference, reviews detected payment options, and asks for a final confirmation before any order, booking, or subscription activation.

Security

Vedant Codex is designed with safety in mind.

File system access is restricted to allowlisted directories

File edits must use reviewable diff patches

Command execution can be restricted with allowlists

Token quotas prevent runaway automation

Development

Clone the repository: git clone https://github.com/Probro-2009/local-codex Then: cd local-codex Then: pip install -e . Then: vedant

Roadmap

Planned improvements:

persistent memory

improved tool orchestration

better project indexing

model auto-detection

improved Windows / Termux compatibility

plugin system

Contributing

Pull requests are welcome.

If you find a bug or want a new feature, email at arunakchitre@gmail.com.

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

vedant_codex-0.3.0.tar.gz (87.5 kB view details)

Uploaded Source

Built Distribution

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

vedant_codex-0.3.0-py3-none-any.whl (91.2 kB view details)

Uploaded Python 3

File details

Details for the file vedant_codex-0.3.0.tar.gz.

File metadata

  • Download URL: vedant_codex-0.3.0.tar.gz
  • Upload date:
  • Size: 87.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for vedant_codex-0.3.0.tar.gz
Algorithm Hash digest
SHA256 52012ffdf55e8133ea33e3ce10681f27a00f872f336721e5b76452fcd5c0e1fb
MD5 b874ca0f10454c74313d69d73f95a981
BLAKE2b-256 91d056e64d9502f4343e7c9495cc08be062ff5ef0ddfdb6272f0a0f794fec24b

See more details on using hashes here.

File details

Details for the file vedant_codex-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: vedant_codex-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 91.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.9

File hashes

Hashes for vedant_codex-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7f568564827e4b219876d5a3eb8154285feba43d3ac0ff2d1a7e50769bd8a686
MD5 8ab6b3f4df59dd0f2b94f1592ca61c47
BLAKE2b-256 9f5c65405b4c12a0969ceee76e2eecc6ce6937c98fa35d6e5474c2fa4d13e2d8

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