Skip to content

Commit f3282ca

Browse files
author
Rahul Sengottuvelu
committed
docs: restore correct uv setup instructions
1 parent 3185e9f commit f3282ca

File tree

1 file changed

+5
-16
lines changed

1 file changed

+5
-16
lines changed

README.md

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A proxy server that lets you use Anthropic clients with Gemini or OpenAI models
1313

1414
- OpenAI API key 🔑
1515
- Google AI Studio (Gemini) API key (if using default provider) 🔑
16-
- [uv](https://github.com/astral-sh/uv) (recommended) or pip installed.
16+
- [uv](https://github.com/astral-sh/uv) installed.
1717

1818
### Setup 🛠️
1919

@@ -23,18 +23,11 @@ A proxy server that lets you use Anthropic clients with Gemini or OpenAI models
2323
cd claude-code-openai
2424
```
2525

26-
2. **Install dependencies**:
27-
Using uv (recommended):
26+
2. **Install uv** (if you haven't already):
2827
```bash
29-
uv venv # Create virtual environment (optional but recommended)
30-
uv pip install fastapi uvicorn litellm python-dotenv httpx # Install main packages
31-
```
32-
Or using pip:
33-
```bash
34-
python -m venv .venv
35-
source .venv/bin/activate # Or .\venv\Scripts\activate on Windows
36-
pip install fastapi uvicorn litellm python-dotenv httpx
28+
curl -LsSf https://astral.sh/uv/install.sh | sh
3729
```
30+
*(`uv` will handle dependencies based on `pyproject.toml` when you run the server)*
3831

3932
3. **Configure Environment Variables**:
4033
Copy the example environment file:
@@ -55,14 +48,10 @@ A proxy server that lets you use Anthropic clients with Gemini or OpenAI models
5548
- Otherwise (if `PREFERRED_PROVIDER=openai` or the specified Google model isn't known), they map to `SMALL_MODEL`/`BIG_MODEL` prefixed with `openai/`.
5649

5750
4. **Run the server**:
58-
Using uv:
5951
```bash
6052
uv run uvicorn server:app --host 0.0.0.0 --port 8082 --reload
6153
```
62-
Or directly with uvicorn (if installed globally or in activated venv):
63-
```bash
64-
uvicorn server:app --host 0.0.0.0 --port 8082 --reload
65-
```
54+
*(`--reload` is optional, for development)*
6655

6756
### Using with Claude Code 🎮
6857

0 commit comments

Comments
 (0)