CodeShield AI is a state-of-the-art, enterprise-quality codebase security analyzer.
2.4K
CodeShield AI is a state-of-the-art, enterprise-quality codebase security analyzer. It automates remote repository cloning, dependency mapping, code structural analysis, and leverages Groq's Large Language Models (LLMs) alongside static scanners to detect, score, and automatically remediate vulnerabilities.
βββββββββββββββββββββββββββββββββββββββββββββββββ
β Web Dashboard / CLI β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββ
β FastAPI Web API Endpoints β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββ
β ScanStateManager (Disk Persistence) β
ββββββββββββββββββββββββ¬βββββββββββββββββββββββββ
β
βΌ
βββββββββββββββββββββββββββββββββββββββββββββββββ
β PipelineManager (Background Worker) β
βββ¬βββββββββββββββββββ¬βββββββββββββββββββββββ¬ββββ
β β β
βΌ βΌ βΌ
ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ
β GitHub/GitLab β β Code Chunker & β β Static Regex & β
β Cloner Service β β Compatible β β LLM Semantic β
β β β Merger (Groq) β β Scanner β
ββββββββββββββββββ ββββββββββββββββββ ββββββββββββββββββ
.diff patches and pre-formated AI prompt logs (fix_prompt.json, .md, .txt) to fix codebase security flaws.Launch the full container stack (including mounted volumes for logs and reports):
# Provide your GROQ API Key in the shell environment or in .env
export GROQ_API_KEY="your_groq_api_key"
# Build and start services
docker-compose up --build -d
Access the application at http://localhost:8000.
Build and run the container locally in detached mode (-d), specifying your GROQ_API_KEY and GROQ_MODEL configuration:
# Build the Docker image
docker build -t codeshield-ai .
# Run the container in detached mode
docker run -d -p 8000:8000 -e GROQ_API_KEY="your_groq_api_key_here" -e GROQ_MODEL="llama-3.3-70b-versatile" codeshield-ai
CodeShield AI automatically publishes container builds to GitHub Container Registry (GHCR) on tagged releases. Pull and run the official image:
# Pull the latest image
docker pull ghcr.io/mohd-musheer/codeshield-ai:latest
# Run the container in detached mode
docker run -d -p 8000:8000 -e GROQ_API_KEY="your_groq_api_key_here" -e GROQ_MODEL="llama-3.3-70b-versatile" ghcr.io/mohd-musheer/codeshield-ai:latest
Clone the Repository:
git clone https://github.com/mohd-musheer/CodeShield-AI.git
cd CodeShield-AI
Configure Environment Settings:
Copy .env.example to .env:
cp .env.example .env
Edit .env and paste your GROQ_API_KEY.
Start the Production Service: Run the quick-start script:
chmod +x start.sh
./start.sh
.\start.ps1
CodeShield AI exposes REST endpoints for integration:
| Method | Endpoint | Description |
|---|---|---|
POST | /repository/analyze | Triggers background codebase security scans. |
POST | /repository/upload | Uploads a ZIP codebase archive for parsing. |
POST | /repository/cancel/{scan_id} | Aborts a running scan and cleans up disk cache. |
GET | /scan/status/{scan_id} | Retrieves active progress metrics and current stage. |
GET | /repository/report | Downloads report in json, html, markdown, sarif, csv, pdf, patch_diff, or fix_prompt. |
GET | /health | Server status and API liveness metrics. |
| Project Size | Total Chunks | Merged Groq Calls | Total Scan Duration |
|---|---|---|---|
| Small (1-50 Files) | 3-10 | 1 | 2-4 seconds |
| Medium (50-200 Files) | 30-80 | 3-5 | 6-9 seconds |
| Large (200+ Files) | 200+ | 12-15 | 15-20 seconds |
Distributed under the Apache 2.0 License. See LICENSEβ for details.
Content type
Image
Digest
sha256:840d89057β¦
Size
89.8 MB
Last updated
about 2 months ago
docker pull mohdmusheer/codeshield-ai