AI/Ollama: Difference between revisions
Jump to navigation
Jump to search
| Line 201: | Line 201: | ||
Setting up Claude Code... | Setting up Claude Code... | ||
✔ Claude Code successfully installed! | ✔ Claude Code successfully installed! | ||
Version: 2.1.63 | Version: 2.1.63 | ||
Location: ~/.local/bin/claude | Location: ~/.local/bin/claude | ||
Next: Run claude --help to get started | Next: Run claude --help to get started | ||
⚠ Setup notes: | ⚠ Setup notes: | ||
• Native installation exists but ~/.local/bin is not in your PATH. Run: | • Native installation exists but ~/.local/bin is not in your PATH. Run: | ||
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc | echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc | ||
✅ Installation complete! | ✅ Installation complete! | ||
' | ' | ||
</syntaxhighlight> | |||
<syntaxhighlight lang='bash'> | |||
cat << 'ENV' | tee -a ${HOME}/.bashrc >/dev/null | |||
# claude config | |||
export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc | |||
ENV | |||
source ~/.bashrc | |||
</syntaxhighlight> | </syntaxhighlight> | ||
|} | |} | ||
Revision as of 10:29, 1 March 2026
curl -fsSL https://ollama.com/install.sh | sh
ollama pull gpt-oss:20b
ollama --version
ollama ls
curl -fsSL https://claude.ai/install.sh | bash
ollama launch claude --model gpt-oss:20b
|
export ANTHROPIC_BASE_URL=http://localhost:11434
export ANTHROPIC_AUTH_TOKEN=ollama
export ANTHROPIC_API_KEY=""
export OLLAMA_NUM_CTX=32768
export OLLAMA_KEEP_ALIVE=5m
claude --model gpt-oss:20b
| ||||
| |||||
Optimization
|
Optimization | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Installation
|
Installation | ||||||||
|---|---|---|---|---|---|---|---|---|
|
References
|
References | ||
|---|---|---|