ToolLoop: Open-Source Framework for Claude-Style Tools with Any LLM

✍️ OpenClawRadar📅 Published: April 20, 2026🔗 Source
ToolLoop: Open-Source Framework for Claude-Style Tools with Any LLM
Ad

ToolLoop is an open-source Python framework that implements Claude Code-style functionality while remaining provider-agnostic. The project was created specifically to avoid vendor lock-in while maintaining similar tool capabilities.

Key Features

The framework includes 11 tools covering:

  • File operations
  • Code search
  • Shell access
  • Sub-agents

The entire codebase is approximately 2,700 lines. ToolLoop connects to any LLM through LiteLLM, supporting:

  • Any model on AWS Bedrock (DeepSeek, Llama, Mistral)
  • Any API provider (OpenAI, Moonshot)
  • Local endpoints

Model Switching Capability

A key feature is the ability to switch models mid-conversation while maintaining shared context between interactions. This allows developers to use different models for different tasks without losing the conversation history.

Ad

SDK Usage Example

Here's the code snippet from the source showing basic usage:

from sdk import query, ToolLoopOptions

async for event in query( prompt="Find all TODO comments, fix them, run the tests", options=ToolLoopOptions( model="bedrock/converse/deepseek.v3.2", allowed_tools=["Read", "Edit", "Grep", "Glob", "Bash"], ), ): print(event)

The example demonstrates how to swap the deepseek.v3.2 model for any other supported model while maintaining the same tools and prompt structure.

Practical Application

This type of framework is particularly useful for developers who want to build AI agents with specific tool capabilities but need flexibility in model selection. The open-source nature allows for customization and avoids dependency on a single provider's ecosystem.

The project is available on GitHub at github.com/zhiheng-huang/toolloop.

📖 Read the full source: r/LocalLLaMA

Ad

👀 See Also

Blender MCP Server with 100+ Tools Built Using Claude Code
Tools

Blender MCP Server with 100+ Tools Built Using Claude Code

A developer has created an MCP server for Blender with over 100 tools across 14 categories, enabling AI coding agents to control Blender's lighting, animation, rendering, and geometry nodes through natural language prompts. The entire codebase was written using Claude Code, which helped solve architectural challenges like Blender's main-thread API requirement.

OpenClawRadar
Code Evolution Method Triples LLM Performance on ARC-AGI-2 Benchmark
Tools

Code Evolution Method Triples LLM Performance on ARC-AGI-2 Benchmark

Researchers achieved a 2.8x improvement on the ARC-AGI-2 benchmark using code evolution with open-weight models, reaching 34% accuracy at $2.67 per task. The same method pushed Gemini 3.1 Pro to 95% accuracy at $8.71 per task.

OpenClawRadar
SoulPrint: Local Tool for Searching Claude and ChatGPT History Together
Tools

SoulPrint: Local Tool for Searching Claude and ChatGPT History Together

SoulPrint is an open-source Python tool that imports conversation exports from Claude (.json) and ChatGPT (.zip) into a local SQLite archive, enabling full-text search across both providers simultaneously with BM25 ranking and highlighted snippets.

OpenClawRadar
How AI assistants fetch web pages: Nginx log analysis of ChatGPT, Claude, Gemini and others
Tools

How AI assistants fetch web pages: Nginx log analysis of ChatGPT, Claude, Gemini and others

A developer tested five major AI assistants by prompting them with unique URLs and monitoring Nginx logs, revealing distinct retrieval patterns: ChatGPT, Claude, and Perplexity use dedicated user-agents while Gemini answered from its index without fetching.

OpenClawRadar