Skip to content

Commit

Permalink
Merge pull request #1 from aindong/feat-cli-setup-config
Browse files Browse the repository at this point in the history
feat: Add configuration and setup command for API key management
  • Loading branch information
aindong authored Jan 30, 2025
2 parents 093b8ec + e7e9944 commit b97cda1
Show file tree
Hide file tree
Showing 8 changed files with 684 additions and 10 deletions.
16 changes: 15 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,20 @@ A intelligent CLI tool that leverages AI for code analysis, pull request generat
npm install -g deepreview
```

## First Time Setup

After installation, run:
```bash
deepreview setup
```

You'll be prompted to enter your OpenAI/DeepSeek API key. This will be stored securely in your home directory at `~/.deepreview/.env`.

To update your API key later:
```bash
deepreview setup
```

## Usage 🚀

### Analyze Code Quality
Expand Down Expand Up @@ -58,4 +72,4 @@ cp .env.example .env
Add your OpenAI API key to .env:
```
AI_API_KEY=your_api_key_here
```
```
Loading

0 comments on commit b97cda1

Please sign in to comment.