eca icon indicating copy to clipboard operation
eca copied to clipboard

Running local ollama models

Open dpom opened this issue 1 year ago • 3 comments

To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.

Describe the bug I try to run eca with local run ollama models in an elisp project. I try /init command but it hangs:

Image

To Reproduce I run a nixos system with ollama server installed. The models I downloaded:

NAME                                         ID              SIZE      MODIFIED     
qwen3-coder:30b                              06c1097efce0    18 GB     10 days ago     
gpt-oss:latest                               17052f91a42e    13 GB     10 days ago     
llama4:latest                                bf31604e25c2    67 GB     5 weeks ago     
jobautomation/OpenEuroLLM-Romanian:latest    08d230e07f63    8.1 GB    5 weeks ago     
deepseek-r1:latest                           6995872bfe4c    5.2 GB    5 weeks ago     
deepseek-coder-v2:latest                     63fb193b3a9b    8.9 GB    2 months ago    
codellama:latest                             8fdf8f752f6e    3.8 GB    2 months ago    

My eca config:

{
    "providers": {
      "openai": {"url": "https://api.openai.com"},
      "anthropic": {"url": "https://api.anthropic.com"},
      "github-copilot": {"url": "https://api.githubcopilot.com"},
      "google": {"url": "https://generativelanguage.googleapis.com/v1beta/openai"},
      "ollama": {"url": "http://localhost:11434"}
    },
    "defaultModel": null,
    "toolCall": {
        "approval": {
            "byDefault": "allow",
            "ask": {
                "eca_shell_command": {"argsMatchers": {"command": [".*rm.*",
                                                                   ".*mv.*"]}},
                "eca_edit_file": {},
                "eca_write_file": {}
            }
        }
    },
    "mcpServers": {
        "clojure-mcp": {
            "command": "clojure",
            "args": ["-X:mcp", ":port", "7888"]
        },
        "fetch": {
            "command": "uvx",
            "args": ["mcp-server-fetch"]
        },
        "duckduckgo": {
            "command": "uvx",
            "args": ["duckduckgo-mcp-server"]
        },
        "nixos": {
            "command": "nix",
            "args": ["run", "github:utensils/mcp-nixos", "--"]
        }
    }
}

Could you help me to solve this issue?

dpom avatar Oct 28 '25 07:10 dpom

@dpom we had some bugs in eca-emacs I already fixed some days ago, can you try latest eca-emacs + latest server in case you are using a specific one?

Just tested right now with ollama mistral and worked:

Image

ericdallo avatar Oct 28 '25 15:10 ericdallo

I update eca, eca-emacs and my framework laptop and local models started to work. But still the /init command does not generate the file AGENTS.md

dpom avatar Nov 02 '25 18:11 dpom

@dpom what happens when you call /init? I just tested and looks good, try checking logs to see if it helps anything

ericdallo avatar Nov 02 '25 21:11 ericdallo