Metadata-Version: 2.4
Name: nx-ai
Version: 0.1.0
Summary: NeuronX AI — command-line coding assistant powered by 22 AI models and 185K+ code patterns
Project-URL: Homepage, https://neuronx.jagatab.uk
Project-URL: Documentation, https://neuronx.jagatab.uk/developers
Project-URL: Repository, https://github.com/sreejagatab/neuronx-platform
Project-URL: Bug Tracker, https://github.com/sreejagatab/neuronx-platform/issues
Author-email: SreeGanesh Jagatab <sbdeliverservice@gmail.com>
License-Expression: MIT
Keywords: ai,cli,code-generation,code-review,llm,neuronx
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Software Development :: Code Generators
Requires-Python: >=3.8
Requires-Dist: click>=8.0.0
Requires-Dist: httpx>=0.24.0
Requires-Dist: pygments>=2.14.0
Requires-Dist: rich>=13.0.0
Description-Content-Type: text/markdown

# nx-ai — NeuronX AI CLI

Command-line coding assistant powered by [NeuronX](https://neuronx.jagatab.uk) — 22 AI models, 185K+ code patterns, and AI security scanning.

## Install

```bash
pip install nx-ai
```

## Setup

```bash
nx-ai init
# or
nx-ai config --key YOUR_API_KEY
```

Get a free API key at [neuronx.jagatab.uk/developers](https://neuronx.jagatab.uk/developers)

## Commands

```bash
# Chat with AI
nx-ai chat "explain async/await in Python"
nx-ai chat "how do I optimize a slow SQL query" --model neuronx-smart

# Generate code
nx-ai code "REST API with JWT auth" --lang python
nx-ai code "React hook for debounced search" --lang typescript --output hook.ts
nx-ai code "binary search tree" --lang go

# Security scan
nx-ai scan app.py
nx-ai scan --stdin < script.py
cat mycode.js | nx-ai scan --stdin --lang javascript

# AI code review
git diff HEAD | nx-ai review --stdin
nx-ai review my_changes.diff

# Search patterns
nx-ai search "connection pooling postgres"
nx-ai search "JWT authentication middleware" --limit 20

# Platform status
nx-ai status
```

## Models

| Model | Use case | Speed |
|-------|----------|-------|
| `neuronx-fast` | Quick questions | ~1s |
| `neuronx-smart` | Complex reasoning | ~3s |
| `neuronx-code` | Code generation | ~3s |
| `neuronx-32b` | Advanced coding | ~8s |

## Environment Variables

```bash
export NEURONX_API_KEY=nx-your-key
export NEURONX_BASE_URL=https://neuronx.jagatab.uk  # default
```

## License

MIT — built on [NeuronX Platform](https://neuronx.jagatab.uk)
