diff --git a/30 Personal Projects/AI/CareerOp/Setup.md b/30 Personal Projects/AI/CareerOp/Setup.md index 4998cf5..e7332df 100644 --- a/30 Personal Projects/AI/CareerOp/Setup.md +++ b/30 Personal Projects/AI/CareerOp/Setup.md @@ -32,7 +32,9 @@ career-ops uses Playwright (headless Chrome) to render your friend's CV/cover le npm i -g opencode-ai ``` -**5. Point OpenCode at your local Ollama** +**5. Point OpenCode at your local Ollama** + +`See integration of opencode and ollama instead` career-ops is CLI-agnostic — it just needs an AI CLI wired to a model. Configure OpenCode to talk to Ollama's OpenAI-compatible endpoint. In OpenCode's config (`~/.config/opencode/opencode.json` or via `opencode auth login` flow depending on version), set the local provider to: @@ -59,4 +61,170 @@ Then inside the session, just start chatting — on first launch career-ops walk One honest caveat before you commit to the local-model path: career-ops's evaluation quality (fit scoring, CV tailoring, company research) leans on the model actually being good at instruction-following and reasoning across a long agentic session. A 14B local model will be noticeably weaker at this than Claude — worth testing on one real job posting before running your friend's whole batch through it, so you're not silently getting worse evaluations to save money. -Want me to walk through step 5's exact config file syntax once you've got OpenCode installed and can share what version/config format it's using? \ No newline at end of file +Want me to walk through step 5's exact config file syntax once you've got OpenCode installed and can share what version/config format it's using? + + +## Integration of Opencode and Ollama +> ## Documentation Index +> Fetch the complete documentation index at: https://docs.ollama.com/llms.txt +> Use this file to discover all available pages before exploring further. + +# OpenCode + +[OpenCode](https://opencode.ai) is an open-source coding agent that runs in your terminal, reads your project, edits files, and runs commands. + +Ollama configures OpenCode to use local and cloud models. + +## Get started + +Launch OpenCode with Ollama: + +```shell theme={"system"} +ollama launch opencode +``` + +## Capabilities + +
+
+
+
+ +
+ +
+
Chat
+
Ask questions about a repository or task
+
+
+ +
+
+ +
+ +
+
Command line
+
Run commands from your working directory
+
+
+ +
+
+ +
+ +
+
File edits
+
Read and edit files in your project
+
+
+ +
+
+ +
+ +
+
Subagents
+
Split work across tasks
+
+
+ +
+
+ +
+ +
+
Web fetch
+
Fetch and summarize web pages
+
+
+ +
+
+ +
+ +
+
Vision
+
Send images and screenshots
+
+
+
+
+ +## Models + +Choose a model with enough context for your repository. + + + + Use larger models without downloading them. + + + + Choose a model and set a 64k+ context window. + + + +OpenCode requires a context length of 64k or higher. See [Context length](/context-length) for more information. + +## Manual setup + +

1. Install OpenCode

+ + + ```shell macOS / Linux theme={"system"} + curl -fsSL https://opencode.ai/install | bash + ``` + + ```powershell Windows theme={"system"} + npm install -g opencode-ai + ``` + + +

2. Configure Ollama as a provider

+ +Add an Ollama provider to `opencode.json`: + +```json theme={"system"} +{ + "$schema": "https://opencode.ai/config.json", + "provider": { + "ollama": { + "npm": "@ai-sdk/openai-compatible", + "name": "Ollama", + "options": { + "baseURL": "http://localhost:11434/v1" + }, + "models": { + "qwen3.5": { + "name": "qwen3.5" + } + } + } + } +} +``` + +

3. Run OpenCode

+ +```shell theme={"system"} +opencode +``` + +To configure OpenCode with Ollama without starting an interactive session: + +```shell theme={"system"} +ollama launch opencode --config +``` + +### Configuration precedence + +`ollama launch opencode` starts OpenCode with an inline config for the selected Ollama model. It does not overwrite `~/.config/opencode/opencode.json`; existing OpenCode settings still apply. + +Models defined only in `opencode.json` do not appear in the `ollama launch` model picker. + +See OpenCode's [config precedence](https://opencode.ai/docs/config/#precedence-order).