A model's answer alone cannot create a downloadable file. In AnythingLLM Docker on Linux, AI agents combine a language model with enabled skills to carry out actions requested in chat.

The agent provider and model can be selected per workspace, independently of its ordinary chat model. System Default inherits the workspace or system LLM, while Configure Agent Skills changes the skills available across all workspaces. A workspace model override does not isolate its tool permissions.

Begin with a working Ollama connection and permission to manage instance-wide skills. A small tool-capable model and a text-file request provide a local starting point without a search account, embedded documents, or external integrations. New workspaces use Agent mode, which routes prompts to tools automatically when the model and provider support native tool calling.

Steps to configure AI agents in AnythingLLM:

  1. Download qwen2.5:3b into your Ollama container.
    $ docker exec ollama ollama pull qwen2.5:3b

    The commands assume the container is named ollama. The model download is about 1.9 GB. The small text-file setup below uses a 2,048-token context; more tools or longer conversations need a larger context and enough memory to hold it.
    Related: How to pull an Ollama model

  2. Create Modelfile-agent in your text editor with the following contents.
    FROM qwen2.5:3b
    PARAMETER num_thread 2
    PARAMETER num_ctx 2048
    PARAMETER num_batch 64
    PARAMETER num_predict 256

    num_thread limits CPU inference threads, num_ctx sets the context window, num_batch limits the prompt-processing batch, and num_predict caps generated tokens. These values suit a short file-creation request, rather than long documents or many enabled tools.

  3. Save Modelfile-agent.

    The next command uses the file in your terminal's current directory.

  4. Copy Modelfile-agent into the Ollama container.
    $ docker cp Modelfile-agent ollama:/tmp/Modelfile-agent
  5. Create the local-agent model from that file.
    $ docker exec ollama ollama create local-agent -f /tmp/Modelfile-agent

    The new name reuses the downloaded model weights with the specified parameters.

  6. Click the + button beside AnythingLLM's workspace search box.

    A new workspace avoids carrying an existing conversation or Chat/Query mode into the agent setup.

  7. Enter Orbit Desk as the Workspace Name.

    Any unused workspace name can replace Orbit Desk.

  8. Click Save to create the workspace.
  9. Open the workspace settings with its sidebar gear icon.
  10. Open Agent Configuration.
  11. Select Ollama from Workspace Agent LLM Provider.

    The provider list can be filtered by name. This selection uses the Ollama connection already configured in the instance settings.

  12. Select local-agent:latest under Workspace Agent model.
  13. Reload the page after the model field shows Saved.

    Ollama and local-agent:latest should remain selected after reload. A reverted value means the change did not persist; there is no separate Save button for these workspace controls.

  14. Open Configure Agent Skills.

    Skill changes affect every workspace. Enabling a skill gives agents that capability, while disabling one can interrupt other workspaces that use it. The following selection leaves only text-file creation enabled; a shared instance needs agreement from its other users before changing that set.

  15. Open Document Creation.
  16. Enable Document Creation with its upper-right switch.
  17. Disable PowerPoint Presentations under Available Document Types.

    Text Files starts enabled and stays on. Limiting formats reduces the tool definitions sent to the small model.

  18. Disable PDF Documents.
  19. Disable Excel Spreadsheets.
  20. Disable Word Documents.
  21. Click Save in the Unsaved Changes bar.
  22. Open RAG & long-term memory.

    These four default skills are unnecessary for this file request and consume context.

  23. Disable RAG & long-term memory using its detail-panel switch.
  24. Open View & summarize documents.
  25. Disable View & summarize documents using its detail-panel switch.
  26. Open Scrape websites.
  27. Disable Scrape websites using its detail-panel switch.
  28. Open Web Search.
  29. Disable Web Search using its detail-panel switch.
  30. Click Save to apply the remaining skill changes.

    Document Creation should be the only enabled skill, with only Text Files enabled inside it. Previously enabled custom skills or integrations also add tools and need their own permission and context decisions.

  31. Return to workspaces with the back arrow at the bottom of the settings sidebar.
  32. Open Orbit Desk from the workspace sidebar.
  33. Enter the text-file request in the empty message box.
    Create a text file named orbit-check.txt containing exactly ORBIT-8832. Use the text-file creation tool.

    The new workspace's Agent mode uses native tool calling without an @agent prefix. An explicit @agent can also start an agent session; it is not required for this setup.

  34. Send the request with the upward-arrow button.
  35. Approve the create-text-file request for orbit-check.txt.

    Approval allows the displayed action to run. A different tool or filename is a reason to reject the request. A one-time approval does not require Always allow create-text-file.

  36. Download orbit-check.txt from the completed file card.

    A text reply claiming to have created a file is insufficient. The conversation must show the tool execution and a downloadable file.

  37. Check the downloaded file's contents.
    $ cat ~/Downloads/orbit-check.txt
    ORBIT-8832

    The file should contain only ORBIT-8832. Use your browser's actual download location if it differs from ~/Downloads. A missing card, wrong filename, or different contents means the agent setup has not completed this request.

Share this guide