# 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 %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://omega-6.gitbook.io/omega/omega-terminal-1/ai-integration.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
