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

What ToolLoop Does
ToolLoop is an open-source Python framework built to provide Claude Code-style functionality without being locked into a single provider. The framework includes 11 tools covering file operations, code search, shell access, and sub-agents, and works with any LLM through LiteLLM integration.
Key Features
- Open-source framework written in Python
- Approximately 2,700 lines of code
- 11 built-in tools: file operations, code search, shell, sub-agents
- Works with any LLM through LiteLLM
- Supports any model on Bedrock (DeepSeek, Llama, Mistral) or any API (OpenAI, Moonshot, local endpoints)
- Switch models mid-conversation with shared context
- Same tools and prompts work across different models
Code Example
Here's the SDK usage example from the source:
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)
You can swap deepseek.v3.2 for any model while maintaining the same tools and prompt structure.
Who This Is For
Developers who want Claude Code-style agent functionality but need flexibility to use different models across various providers and local setups.
📖 Read the full source: r/LocalLLaMA
👀 See Also

MCP-Loci: Local Persistent Memory Server for Claude and MCP-Compatible AI
MCP-Loci is a persistent memory server that solves Claude's session-based memory limitation with five tools: remember, recall, forget, synthesize, and health. It uses hybrid BM25 keyword matching and semantic embeddings for accurate recall without requiring API keys.

Real-world comparison: Opus 4.6 vs MiMo-V2-Pro vs GLM-5 on OpenClaw setup
A developer tested three AI models on practical tasks including Turkish idiom translation, Python coding, spatial reasoning, and browser automation. MiMo-V2-Pro outperformed Opus 4.6 on coding tasks and cost 20x less, while Opus maintained advantages in non-English language understanding.

Solitaire: Open-Source Identity Layer for AI Agents Built with Claude Code
Solitaire is an open-source identity layer for AI agents that evolves through interaction rather than static configuration. It's been tested across 600+ production sessions and stores all data locally using SQLite + JSONL with no cloud dependencies.

nex-life-logger: Local Activity Tracker for OpenClaw Agents
nex-life-logger is a background activity tracker that runs locally on your machine, giving OpenClaw agents memory of your computer activities. It tracks browser history, active windows, and YouTube transcripts, storing everything in a local SQLite database with no cloud data transmission.