Skip to content

Commit 306053a

Browse files
committed
docs: add en readme
1 parent 9e290c8 commit 306053a

1 file changed

Lines changed: 61 additions & 0 deletions

File tree

README.md

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
# CoreInfra OpenCode Plugin
2+
3+
Plugin for [OpenCode](https://opencode.ai) that adds [CoreInfra AI Hub](https://hub.coreinfra.ai/) as an external model provider.
4+
5+
## Installation
6+
7+
**Important:** requires OpenCode version 1.4.0 or newer
8+
9+
```bash
10+
# Install the plugin
11+
opencode plugin -g 'coreinfra-opencode-plugin@github:CoreInfraAI/opencode-plugin'
12+
# Log in by entering the API token
13+
opencode providers login --provider coreinfra
14+
```
15+
16+
During authentication, you will need a [CoreInfra AI Hub](https://hub.coreinfra.ai/) API token.
17+
18+
## Features
19+
20+
- **Up-to-date model list** - the catalog is loaded dynamically from the Hub API on every startup and always reflects its current state.
21+
- **OpenAI and Anthropic models** - both model families are supported, including GPT-5.x and Claude 4.x.
22+
- **Reasoning support** - `interleaved thinking` mode is enabled automatically for Anthropic models.
23+
24+
## Limitations
25+
26+
At the moment, OpenCode supports prices in USD only.
27+
Because of that, pricing is not overridden yet: OpenCode shows prices from the original OpenAI/Anthropic API.
28+
29+
## Usage
30+
31+
After installation and authentication, models will be available with the `coreinfra/` prefix:
32+
33+
```bash
34+
opencode run -m coreinfra/gpt-5.4-nano
35+
opencode run -m coreinfra/claude-sonnet-4-20250514
36+
```
37+
38+
To see the full list of available models:
39+
40+
```bash
41+
opencode models coreinfra
42+
```
43+
44+
## Supported Models
45+
46+
The full model list is determined by the Hub contents at startup time. The plugin supports all models listed on this page:
47+
https://hub.coreinfra.ai/pricing
48+
49+
## Development
50+
51+
Code formatting:
52+
53+
```bash
54+
just fmt
55+
```
56+
57+
Full project check:
58+
59+
```bash
60+
just check
61+
```

0 commit comments

Comments
 (0)