Skip to content

amrangry/dev_macOS_environment_setup

Repository files navigation

Development Environment Setup

Standardized terminal configuration for React Native, PHP, WordPress, AI Development Tools, and IDE Launchers

πŸ€– AI Tools
Β Β Β Β πŸ“¦ OpenCode
  • OpenCode - Open source AI coding agent available as a terminal app, desktop app, and IDE extension.

  • Docs: OpenCode Documentation

  • Run OpenCode

    opencode
  • Initialize the project

    /init
  • Open model picker

    /models
    
  • Configure default model in opencode.json

    {
      "model": "provider/model-id"
    }
πŸ¦™ Ollama -Local LLM-
Β Β Β Β βš™οΈ Ollama Configuration (One-Time Setup)

Create Configuration File

mkdir -p ~/.ollama
nano ~/.ollama/config.yaml

Content

api:
  enabled: true
  address: 0.0.0.0:11434

Test Configuration

curl http://localhost:11434/v1/models

If JSON containing your models is returned, the OpenAI-compatible API is enabled successfully.

    ⌨️ Useful Ollama Commands

Check Running Processes

ps aux | grep ollama

Start Server

ollama serve

Download Model

ollama pull <model-name>

Example:

ollama pull qwen3:latest

Run Model

ollama run <model-name>

Example:

ollama run qwen3:latest

List Installed Models

ollama list

Show Model Details

ollama show <model-name>

Create Custom Model

ollama create

Remove Model

ollama rm <model-name>
πŸ–₯️ Cursor + Local LLM

Overview

  • Cursor needs Ollama running when you use a local model.
  • Use either Ollama.app or ollama serve from terminal.
  • Your config.yaml is permanent and normally only needs to be configured once.

Verify Ollama is running

    🎯 Configure Cursor (One-Time)

OpenAI Settings

  1. Open Cursor β†’ Settings β†’ Models β†’ OpenAI
  2. Enable Override OpenAI Base URL
  3. Set Base URL:
http://localhost:11434/v1

Original value:

https://api.openai.com/v1
  1. Set any non-empty API Key:
ollama
  1. Add your local models:
  • qwen3:latest
  • gpt-oss:20b
  • llama3.1:8b
  • deepseek-r1:7b
  • etc...

This only needs to be done once unless you reinstall Cursor.

πŸ—οΈ Architecture Summary (My Setup)
macOS
β”‚
β”œβ”€β”€ Ollama (local runtime)
β”‚     β”œβ”€β”€ deepseek-r1:7b
β”‚     β”œβ”€β”€ mistral:7b
β”‚     └── llama3.1:8b
β”‚
β”œβ”€β”€ CLI tools
β”‚     β”œβ”€β”€ ollama run
β”‚     └── groq (optional)
β”‚
└── Cursor IDE
      β”œβ”€β”€ Local LLM (Ollama)
      └── Cloud LLM (optional)
βœ” Hardware Requirements
RAM Recommended Models
16 GB Small models (7B)
32 GB Medium models (13B)
64 GB+ Large models (33B / 70B quantized)
πŸ† Model Ranking (Reasoning + Coding)
  1. Qwen3 (latest) β€” Best balance of speed and intelligence
  2. GPT‑OSS 20B β€” Strongest reasoning, but heavier
  3. Llama 3.1 (8B) β€” Excellent general-purpose model
  4. DeepSeek‑R1 (7B) β€” Strong for logic and math
  5. Qwen2.5 (7B) β€” Good but older generation
  6. Mistral 7B β€” Fastest, but weaker reasoning

Β 

Β 

Β 

Author

Amr Ahmed Elghadban

Amr Ahmed Elghadban (AmrAngry)

Email WhatsApp LinkedIn

GitHub StackOverflow

Twitter (formerly Twitter) Facebook Website

Contributing 🀘

All your feedback and help to improve this project is very welcome. Please create issues for your bugs, ideas & enhancement requests, or better yet, contribute directly by creating a PR. 😎

When reporting an issue, please add a detailed instruction, and if possible a code snippet or test that can be used as a reproducer of your problem. πŸ’₯

When creating a pull request, please adhere to the current coding style where possible, and create tests with your code so it keeps providing an awesome test coverage level πŸ’ͺ

Code of Conduct

I’m here to share my knowledge and findings as I work every day to improve our apps/demos for the community.

This is a space where we work together, openly and safely, as kind and considerate human beings.

We grow by giving and receiving positive, constructive feedback.

Let’s keep learning and building, one step at a time.

License

MIT License. Distributed under MIT License. Copyright 2025 Amr Elghadban

About

dev_macOS_environment_setup

Resources

Stars

5 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages