sensitive-blue
sensitive-blue3mo ago

[Solved ✅] Run Composio without API Key?

Is it possible to run composio without using an API key? Or maybe run Composio on a private server?
7 Replies
stormy-gold
stormy-gold3mo ago
hey @cactusoftheday, yes! you can. we do provide self-hosting under our enterprise plan. we can help you self-host composio on your private servers.
sensitive-blue
sensitive-blueOP3mo ago
@Karthikeya How does the enterprise plan work?
Soham
Soham3mo ago
Cal.com
Chat with Soham | Composio
Chat with Soham
nesar@composio.dev
Composio
Composio for Enterprise
Composio for Enterprise Scalable Agentic Solutions Secure, reliable and accurate LLM integrations at scale. Scale Beyond Limits Fast AI integrations across organization
sensitive-blue
sensitive-blueOP3mo ago
@Soham Thanks for the quick response. The reason why I'm concerned about running Composio without an LLM key/running it locally is because of data privacy concerns. For example, if the code being run by the code interpreter tool gets sent to Composio servers. My company has strict rules put in place that internal data has to stay internal. So if code being run by code interpreter tool gets sent to Composio servers, it's a no go. This also means I haven't been able to use many of Composio tool's and we're not ready to go all in with Composio yet. What's the deal with the code interpreter tool and can you guys allow us to run just a couple of Composio tools locally for testing?
Soham
Soham3mo ago
yes for sure. Do you want to get on a short call and discuss this? dming you.
sensitive-blue
sensitive-blueOP3mo ago
I sent you a message. Did you get it?
Soham
Soham3mo ago
got it.
from composio_crewai import ComposioToolSet, App
from crewai import Agent, Task, Crew
from langchain_openai import ChatOpenAI

toolset = ComposioToolSet()
llm = ChatOpenAI(model="gpt-4o")


tools = toolset.get_tools(apps=[App.FILETOOL,App.SHELLTOOL])

crewai_agent = Agent(
role="Code Execution Agent",
goal="You execute code and commands using Python",
backstory="You are an AI agent that is responsible for executing code and shell commands safely and effectively",
verbose=True,
tools=tools,
llm=llm,
)

# Create task to write file
create_file_task = Task(
description="Create a Python file named 'hello.py' with the following content: print('Hello World')",
agent=crewai_agent,
expected_output="File created successfully",
)

# Create task to execute file
execute_file_task = Task(
description="Execute the Python file 'hello.py'",
agent=crewai_agent,
expected_output="Output of code execution",
)

crew = Crew(agents=[crewai_agent], tasks=[create_file_task, execute_file_task])

result = crew.kickoff()
print(result)
from composio_crewai import ComposioToolSet, App
from crewai import Agent, Task, Crew
from langchain_openai import ChatOpenAI

toolset = ComposioToolSet()
llm = ChatOpenAI(model="gpt-4o")


tools = toolset.get_tools(apps=[App.FILETOOL,App.SHELLTOOL])

crewai_agent = Agent(
role="Code Execution Agent",
goal="You execute code and commands using Python",
backstory="You are an AI agent that is responsible for executing code and shell commands safely and effectively",
verbose=True,
tools=tools,
llm=llm,
)

# Create task to write file
create_file_task = Task(
description="Create a Python file named 'hello.py' with the following content: print('Hello World')",
agent=crewai_agent,
expected_output="File created successfully",
)

# Create task to execute file
execute_file_task = Task(
description="Execute the Python file 'hello.py'",
agent=crewai_agent,
expected_output="Output of code execution",
)

crew = Crew(agents=[crewai_agent], tasks=[create_file_task, execute_file_task])

result = crew.kickoff()
print(result)

Did you find this page helpful?