> For the complete documentation index, see [llms.txt](https://omega-6.gitbook.io/omega/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://omega-6.gitbook.io/omega/omega-terminal-1/ai-integration.md).

# Ai Integration

Omega Terminal integrates **ChainGPT** to bring powerful AI capabilities directly to your command line. This allows developers and traders to leverage AI without leaving their workflow.

## Capabilities

### 🧠 Smart Contract Auditing

Quickly check smart contracts for common vulnerabilities before deploying or interacting.

```bash
audit contract YourContract { ... }
```

### 📝 Code Generation

Generate boilerplate code for Solidity, Rust (Solana), or frontend components.

```bash
gen Create an ERC-20 token contract with minting capabilities
```

### 🎨 NFT Generation

Generate unique artwork for your NFTs using AI image generation models.

```bash
imagine A futuristic cyberpunk city in neon colors
```

### 💬 General Assistant

Ask questions about blockchain concepts, debugging errors, or market trends.

```bash
ai What is the difference between Proof of Work and Proof of Stake?
```

{% hint style="info" %}
Configuration

To use the AI features, you may need to configure your API key in the settings or `.env` file if running locally:

* `CHAINGPT_API_KEY`: Your ChainGPT API key.
* `GEMINI_API_KEY`: Optional fallback for general queries.

The terminal automatically selects the best available provider for your query.
{% endhint %}
