AiTm, Ai Agent in the Middle
Control your agents (ie cli)
AiTm is an application (cli and Python library) that controls any AI clients and library.
Features
See:
- the system prompts
- the http requests
Control:
- the cost of a session
- the maximum number of iterations
- the permissions (file system, ...) with sandboxing
Commands
Control:
- Any cli such:
- Acp Server
You can start:
- in a exec mode (default)
- in service mode (daemon)
Tools:
- nlc - Natural Language Command - express shell commands in natural language
Installation
You can install the aitm tool
- With uv
- or with pipx
Note that the Python version is required because the .python-version file and the requires-python property are unfortunately ignored
FAQ
- Where are the session data?
- Can I see the HTTP requests via a Web GUI?
- What are the agent and client supported?
- What are the environment variables available?
Format Supported
- OpenAI Chat / Responses,
- Anthropic Messages,
- Todo: Gemini Generate Content / Interactions