> ## Documentation Index
> Fetch the complete documentation index at: https://agno-v2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Redmine Tools

> Demonstrates the Redmine tools for searching, reading, creating, updating, and commenting on issues.

```python redmine_tools.py theme={null}
"""
Redmine Tools
=============================

Demonstrates the Redmine tools for searching, reading, creating, updating, and commenting on issues.

Set the following environment variables before running:
- REDMINE_SERVER_URL
- REDMINE_TOKEN (or REDMINE_USERNAME and REDMINE_PASSWORD if you don't have a token)
"""

import os

from agno.agent import Agent
from agno.tools.redmine import RedmineTools

# ---------------------------------------------------------------------------
# Create Agent
# ---------------------------------------------------------------------------

# Get Redmine connection details from environment
server_url = os.getenv("REDMINE_SERVER_URL")
token = os.getenv("REDMINE_TOKEN")

agent = Agent(
    name="Redmine agent",
    tools=[RedmineTools(server_url=server_url, token=token)],
    markdown=True,
)

# ---------------------------------------------------------------------------
# Run Agent
# ---------------------------------------------------------------------------
if __name__ == "__main__":
    # searching issues by subject
    agent.print_response("Find all issues whose subject contains 'search'")

    # getting issue details
    agent.print_response("Show me the details of issue 1")

    # creating a new issue
    agent.print_response(
        "Create a Bug in project 'website' titled 'Login button unresponsive' "
        "described 'The login button does nothing on click'"
    )

    # adding a comment
    agent.print_response("Add the comment 'Reviewed and confirmed' to issue 1")
```

## Run the Example

<Snippet file="create-venv-step.mdx" />

**1. Install dependencies**

```bash theme={null}
uv pip install -U agno openai python-redmine redminelib
```

**2. Export environment variables**

```bash Mac/Linux theme={null}
export OPENAI_API_KEY="your_openai_api_key_here"
export REDMINE_PASSWORD="your_redmine_password_here"
export REDMINE_SERVER_URL="your_redmine_server_url_here"
export REDMINE_TOKEN="your_redmine_token_here"
```

```bash Windows theme={null}
$Env:OPENAI_API_KEY="your_openai_api_key_here"
$Env:REDMINE_PASSWORD="your_redmine_password_here"
$Env:REDMINE_SERVER_URL="your_redmine_server_url_here"
$Env:REDMINE_TOKEN="your_redmine_token_here"
```

**3. Run the example**

Save the code above as `redmine_tools.py`, then run:

```bash theme={null}
python redmine_tools.py
```

Full source: [cookbook/91\_tools/redmine\_tools.py](https://github.com/agno-agi/agno/blob/v3.0.4/cookbook/91_tools/redmine_tools.py)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.