docs(cli): Add Open Interpreter integration section
Browse files- docs/CLI_INTEGRATION.md +37 -0
docs/CLI_INTEGRATION.md
CHANGED
|
@@ -44,3 +44,40 @@ claude
|
|
| 44 |
```
|
| 45 |
|
| 46 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 44 |
```
|
| 45 |
|
| 46 |
---
|
| 47 |
+
|
| 48 |
+
## Open Interpreter (OpenCode)
|
| 49 |
+
|
| 50 |
+
Open Interpreter can be routed through the proxy using the `--api_base` flag or by setting the `api_base` in its configuration.
|
| 51 |
+
|
| 52 |
+
### Configuration via CLI Flags
|
| 53 |
+
|
| 54 |
+
Use the `--api_base` flag when starting the interpreter:
|
| 55 |
+
|
| 56 |
+
```bash
|
| 57 |
+
interpreter --api_base "http://localhost:7860/v1" --api_key "your-api-key-here"
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
### Configuration via Python API
|
| 61 |
+
|
| 62 |
+
If using Open Interpreter as a library:
|
| 63 |
+
|
| 64 |
+
```python
|
| 65 |
+
from interpreter import interpreter
|
| 66 |
+
|
| 67 |
+
interpreter.offline = False
|
| 68 |
+
interpreter.api_base = "http://localhost:7860/v1"
|
| 69 |
+
interpreter.api_key = "your-api-key-here"
|
| 70 |
+
|
| 71 |
+
interpreter.chat("Hello, how are you?")
|
| 72 |
+
```
|
| 73 |
+
|
| 74 |
+
### Configuration via `config.yaml`
|
| 75 |
+
|
| 76 |
+
Edit your `config.yaml` (typically located in `~/.config/Open Interpreter/` or similar):
|
| 77 |
+
|
| 78 |
+
```yaml
|
| 79 |
+
api_base: "http://localhost:7860/v1"
|
| 80 |
+
api_key: "your-api-key-here"
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
---
|