# Robotframework: Self Healing

**URL:** <https://forum.robotframework.org/t/robotframework-self-healing/9565>\
**Category:** AI\
**Created:** [5 March 2026 12:37 UTC](https://forum.robotframework.org/t/robotframework-self-healing/9565 "2026-03-05T12:37:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ccma](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Ccma](https://forum.robotframework.org/u/Ccma)\
**Post date:** [5 March 2026 12:37 UTC](https://forum.robotframework.org/t/robotframework-self-healing/9565/1 "2026-03-05T12:37:46Z")

</div>

Hi Team,

Need to check if we have any solution around self healing:

1. During execution if locator fails, script should rectify and proceed: share report for the changes done.
2. If any changes identified in flow, it should handle and share report.

If have tried selfhealing library with local ollama, but it takes long time for each object approx 5mins to execute.

---

<div class="post-metadata">

**Author:** ![Many](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/many/32/658_2.png) [@Many](https://forum.robotframework.org/u/Many)\
**Post date:** [5 March 2026 13:12 UTC](https://forum.robotframework.org/t/robotframework-self-healing/9565/2 "2026-03-05T13:12:25Z")

</div>

Hi @SeemaT ,  
I recommend to try out [GitHub - MarketSquare/robotframework-selfhealing-agents: A robotframework library that repairs failing Robot Framework tests automatically via AI · GitHub](https://github.com/MarketSquare/robotframework-selfhealing-agents)

But: Use the current `prerelease` (0.2.0dev1) if you want to use local LLMS via Ollama.  
So install via  
`pip install –pre robotframework-selfhealing-agents`

I will do an official release in the next days.

---

<div class="post-metadata">

**Author:** ![Ccma](https://avatars.discourse-cdn.com/v4/letter/c/a6a055/32.png) [@Ccma](https://forum.robotframework.org/u/Ccma)\
**Post date:** [6 March 2026 07:02 UTC](https://forum.robotframework.org/t/robotframework-self-healing/9565/3 "2026-03-06T07:02:21Z")

</div>

Thanks a lot.

But I want to setup local ollama, for which we don’t have any API keys.

How can we configure it?

Also can you help to understand in detail this architecture.

---

<div class="post-metadata">

**Author:** ![Many](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/many/32/658_2.png) [@Many](https://forum.robotframework.org/u/Many)\
**Post date:** [6 March 2026 08:09 UTC](https://forum.robotframework.org/t/robotframework-self-healing/9565/4 "2026-03-06T08:09:49Z")

</div>

I assume you have already installed Ollama and some models locally.  
Install the `prerelease` version `0.2.0dev1` from `robotframework-selfhealing-agents`.  
Add a `.env` file to your project root.

`LOCATOR_AGENT_PROVIDER=ollama`  
`LOCATOR_AGENT_MODEL=qwen3:latest`  
`ORCHESTRATOR_AGENT_PROVIDER=“ollama”`  
`ORCHESTRATOR_AGENT_MODEL=“qwen3:latest”`  
`BASE_URL=http://localhost:11434/v1`  
`STRICT_TOOL_DEFINITIONS=false`

`ENABLE_SELF_HEALING=True`  
`USE_LLM_FOR_LOCATOR_GENERATION=True`  
`MAX_RETRIES=3`  
`REQUEST_LIMIT=5`  
`TOTAL_TOKENS_LIMIT=16000`  
`IS_RERUN_ACTIVATED=False`

You can find more infoes here in this branch:

> **[GitHub - MarketSquare/robotframework-selfhealing-agents at...](https://github.com/MarketSquare/robotframework-selfhealing-agents/tree/feature/improve_nonopenai_model_function_calls)**
>
> A robotframework library that repairs failing Robot Framework tests automatically via AI - MarketSquare/robotframework-selfhealing-agents
