opencode-morphllm 0.0.2 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +13 -8
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  This is an OpenCode Plugin for [MorphLLM](https://morphllm.com/). This plugin just adds in `edit_file` and `warpgrep_codebase_search` from MorphLLM to your agent configs as well as the intelligent model router for choosing different models based on the difficulty of the prompt.
4
4
 
5
+ Github: https://github.com/VitoLin/opencode-morphllm
6
+
7
+ NPM: https://www.npmjs.com/package/opencode-morphllm
8
+
5
9
  ## Installation
6
10
 
7
11
  In `~/.config/opencode/opencode.json`, add the following config:
@@ -12,17 +16,18 @@ In `~/.config/opencode/opencode.json`, add the following config:
12
16
  ]
13
17
  ```
14
18
 
15
- You can also set the `opencode-morphllm` config variables by creating a .env file at `~/.config/opencode/.env`. You can find the provider and model ids from https://models.dev
19
+ You can also set the `opencode-morphllm` config variables by creating a `json` file at `~/.config/opencode/morph.json`. You can find the provider and model ids from https://models.dev
16
20
 
17
21
  Example configs:
18
22
 
19
- ```bash
20
- export MORPH_API_KEY="your_morph_api_key_here"
21
- export MORPH_MODEL_EASY = 'github-copilot/gpt-5-mini';
22
- export MORPH_MODEL_MEDIUM = 'opencode/minimax-m2.1-free';
23
- export MORPH_MODEL_HARD = 'gemini-3-flash-preview';
24
- export MORPH_MODEL_DEFAULT = 'github-copilot/gpt-5-mini';
25
- export MORPH_ROUTER_ENABLED = true;
23
+ ```json
24
+ {
25
+ "MORPH_API_KEY": "sk-I05oNc_g83uRY-T4iOE47vCWuqbkG_MOKNhbZqcmzU-aXuXQ",
26
+ "MORPH_MODEL_EASY": "github-copilot/gpt-5-mini",
27
+ "MORPH_MODEL_MEDIUM": "opencode/minimax-m2.1-free",
28
+ "MORPH_MODEL_HARD": "github-copilot/gemini-2.5-pro",
29
+ "MORPH_ROUTER_ENABLED": true
30
+ }
26
31
  ```
27
32
 
28
33
  ## Development
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-morphllm",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "author": "Vito Lin",
5
5
  "main": "dist/index.js",
6
6
  "description": "OpenCode plugin for MorphLLM",