Skip to main content

nx-ai — NeuronX AI CLI

Command-line coding assistant powered by NeuronX — 22 AI models, 185K+ code patterns, and AI security scanning.

Install

pip install nx-ai

Setup

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

Get a free API key at neuronx.jagatab.uk/developers

Commands

# 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

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

License

MIT — built on NeuronX Platform

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nx_ai-1.1.0.tar.gz (16.7 kB view details)

Uploaded Source

Built Distribution

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

nx_ai-1.1.0-py3-none-any.whl (17.6 kB view details)

Uploaded Python 3

File details

Details for the file nx_ai-1.1.0.tar.gz.

File metadata

  • Download URL: nx_ai-1.1.0.tar.gz
  • Upload date:
  • Size: 16.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nx_ai-1.1.0.tar.gz
Algorithm Hash digest
SHA256 743af45d34bfc51ce1e006078dfa2b8d9ab5b41bdd923c409c17b86e55a97322
MD5 2e0b93980a720dd8affb500f4cd64ca1
BLAKE2b-256 652d5be5d4262a0594df6094f3a267f9a42a5225f1f79612737773d2782310c4

See more details on using hashes here.

File details

Details for the file nx_ai-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: nx_ai-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 17.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for nx_ai-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ea2152b38751889ec29d0d6c4530356ce3682565678ff2e3e0b7d03d532a4381
MD5 9e523561000459bea663f1609bcbe35c
BLAKE2b-256 1d0bbd50823e7c293ea45d6f7d3bb1ebc920e3e852f6fdf174e9f96450e93e27

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 files

0.1.0

1 file

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page