> ## Documentation Index
> Fetch the complete documentation index at: https://docs.agipower.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Neovate code

# AGIPower Integration Guide for Neovate

AGIPower is an AI model aggregation platform similar to OpenRouter that provides unified access to multiple AI models. This guide shows you how to integrate AGIPower with [Neovate](https://neovateai.dev).

## Configuration Methods

AGIPower offers two configuration approaches to suit different deployment scenarios:

### Method 1: Environment Variable (Recommended)

The simplest way to configure AGIPower is using the `AGIPower_API_KEY` environment variable:

```bash theme={null}
export AGIPower_API_KEY=your_agipower_api_key_here
```

For Windows users:

```cmd theme={null}
set AGIPower_API_KEY=your_agipower_api_key_here
```

### Method 2: Configuration File (Legacy)

For users requiring more complex configurations or those migrating from older versions, AGIPower supports configuration files:

```json theme={null}
{
  "agipower": {
    "apiKey": "your_agipower_api_key_here",
    "api": "https://api.agipower.ai/v1"
  }
}
```

For more details, refer to the [Neovate Configuration Documentation](https://neovateai.dev/en/docs/providers/#custom-providers).

## Integration Steps

1. **Install Neovate Code** (if not already installed):
   ```bash theme={null}
   npm install -g @neovate/code
   ```

2. **Configure AGIPower API Key**:
   ```bash theme={null}
   export AGIPower_API_KEY=your_api_key
   ```

3. **Launch Neovate**:
   ```bash theme={null}
   neovate
   # or
   neo
   ```

4. **Select AGIPower Provider**:
   ```bash theme={null}
   /login
   # Select AGIPower from the provider list
   ```

5. **Choose Your Model**:
   ```bash theme={null}
   /model
   # Select from available AGIPower models
   ```

## Available Features

Once configured, you can leverage AGIPower's model capabilities through Neovate Code:

* **Code Generation**: Generate code snippets and complete functions
* **Bug Fixing**: Identify and resolve code issues
* **Code Review**: Get intelligent code review suggestions
* **Test Creation**: Generate comprehensive unit tests
* **Code Refactoring**: Optimize and restructure existing code

## Example Usage

```bash theme={null}
# Generate error handling
"Add comprehensive error handling to the user authentication service"

# TypeScript migration
"Convert this JavaScript module to TypeScript with proper type definitions"

# Testing
"Create unit tests for the payment processing module with edge cases"

# Performance optimization
"Optimize this SQL query for better performance with large datasets"
```

## Benefits of Using AGIPower

* **Model Diversity**: Access to multiple AI models through a single interface
* **Cost Optimization**: Compare and choose models based on performance and pricing
* **High Availability**: Redundancy across multiple model providers
* **Unified API**: Consistent interface regardless of the underlying model

## Support

For AGIPower-specific issues:

* Visit [AGIPower Documentation](https://agipower.ai/)

For Neovate integration issues:

* Visit [Neovate Documentation](https://neovateai.dev)
* [Submit issues on GitHub](https://github.com/neovateai/neovate-code)
