---
layout: single
title:  "AutoGPT"
date:   2023-04-14 08:00:00 +0800
categories: [编程开发, AI 与大模型]
tags: [GPT, OpenAI, Google, Pinecone, ElevenLabs, AutoGPT]
---

* [AutoGPT](https://autogpt.net)


## 下载
```shell
git clone https://github.com/Torantulino/Auto-GPT.git
cd Auto-GPT
```

## 安装
```shell
conda create --name autogpt python=3.9
conda activate autogpt
pip install -r requirements.txt
```

## 配置
```shell
cp .env.template .env
vim .env
```

### OPENAI_API_KEY
打开 [OpenAI](https://openai.com) 的 [API Keys](https://platform.openai.com/account/api-keys)，通过 `Create new secret key` 获取 `Secret Key`。
```
OPENAI_API_KEY=your-openai-api-key
```

### GOOGLE_API_KEY
打开 [可编程搜索引擎控制台](https://programmablesearchengine.google.com/controlpanel/all)，通过 `创建项目` 获取 `API Key`。
```
GOOGLE_API_KEY=your-google-api-key
```

### CUSTOM_SEARCH_ENGINE_ID
打开 [Custom Search JSON API](https://developers.google.com/custom-search/v1/introduction)，通过 `创建项目` 获取 `Custom Search Engine ID`。
```
CUSTOM_SEARCH_ENGINE_ID=your-custom-search-engine-id
```

Custom Search JSON API 每天免费提供 100 次搜索查询。

### PINECONE_API_KEY & PINECONE_ENV
打开 [Pinecone](https://app.pinecone.io/organizations/)，通过 `API Keys` 获取 `API Key`。
```
PINECONE_API_KEY=your-pinecone-api-key
PINECONE_ENV=region
```

### ELEVEN_LABS_API_KEY
打开 [ElevenLabs](https://beta.elevenlabs.io)，通过 `Profile Settings` 获取 `API Key`。
```
ELEVEN_LABS_API_KEY=your-elevenlabs-api-key
```

## 运行
```shell
python scripts/main.py
```
