Recurring agent work can continue while the chat window is closed. A scheduled job in AnythingLLM Docker on Linux runs a prompt at a recurring time and saves its result.

Scheduled Jobs is available in single-user mode and uses the instance's configured language model. Each run starts without a conversation to refer back to, so the prompt needs enough detail to finish without follow-up questions.

New jobs start enabled and can execute unattended with any tools selected for them. The AnythingLLM container must stay running for scheduled execution; closing the browser does not stop it, but stopping the container does.

Steps to create a scheduled job in AnythingLLM:

  1. Open AnythingLLM's settings with the wrench icon at the bottom of the sidebar.

    A working instance LLM is required before a job can run. The native Ollama provider is one option for local models.
    Related: How to set the Ollama provider in AnythingLLM

  2. Expand Tools in the settings sidebar.
  3. Open Scheduled Jobs under Tools.
  4. Click New Job.
  5. Enter Lantern packing checklist in Name.

    The name identifies the job in its list and run history; another descriptive name works too.

  6. Enter the checklist instruction in Prompt.
    Write a three-item packing checklist for a lantern. Use three short bullet points. Do not use tools.
  7. Select Custom under Schedule.
  8. Replace the cron expression with 0 0 1 1 *.

    This five-field cron runs every January 1 at 00:00 UTC. AnythingLLM 1.19.0 stores and evaluates cron in UTC, while the description underneath converts it to your browser's local time. A GMT+8 browser displays 08:00 AM on January 1. This future annual schedule leaves time for a manual test before its next automatic run.

  9. Leave Tools (Optional) unselected for this text-only job.

    Selected tools can act without an interactive approval during a scheduled run, including access to files or connected services. With no tools selected, this job only generates text.

  10. Click Create Job.

    The saved row has its enable toggle on and a Next Run date. A missing row means the job was not created.

  11. Click the play-shaped Run now button on the saved job's row.

    This starts a manual run without changing the recurring schedule. A queued or running status means execution has started, rather than finished.

  12. Click the job's name to open its run history.
  13. Open the Completed run in Run History.

    The row updates as execution progresses. A Failed status or an error needs attention before the recurring job can be relied on; the run detail contains the error.

  14. Check that the completed run's Response contains a three-item lantern checklist.

    The wording varies with the model. A saved response confirms that the prompt ran and its result was retained; an empty response does not. The recurring job remains enabled for its next scheduled time.

Share this guide