Integrate Deep Agents
Connect your existing Deep Agents agent to OpenEight and verify its first governed tool call.
On this page
Create your Agent in the ConsoleInstall and configureConnect your Deep Agents agentPublish tools and review the policyRun and verifyFurther reading1Create your Agent in the Console
Open Agent setup in the Console →
Select Deep Agents, create your Agent and save its API key privately. If you already have an Agent, open its setup to find your connection details.
View the Deep Agents setup screen
2Install and configure
Install OpenEight in the Python environment that runs your agent. Check supported versions →
pip install 'openeight[deepagents]'| Value | What to use |
|---|---|
| API endpoint | https://app.openeight.ai |
| Agent Slug | Copy the Agent Slug from Agent setup. |
| API Key | The Agent key you saved, or the eligible Workspace key selected during setup. |
Set your connection values
Use the endpoint shown below. Enter your Agent Slug and API Key privately in the shell that runs your agent.
export OPENEIGHT_ENDPOINT='https://app.openeight.ai'
export OPENEIGHT_AGENT_NAME="your-agent-slug"
export OPENEIGHT_API_KEY="<your-agent-api-key>"If you use a .env file, load it in your application before reading the environment.
3Connect your Deep Agents agent
Import create_deep_agent from openeight.deepagents and pass openeight=openeight_config. Keep your existing model and tools.
Supply your model, tools and provider credentials. The model can be a BaseChatModel or a provider:model string.
Deep Agents uses StateBackend by default. If your agent already passes a supported backend, keep its backend argument. Compiled, remote or dynamic child topologies and provider-executed effects are outside this adapter’s scope.
import os
from openeight import OpenEightConfig
from openeight.deepagents import create_deep_agent
openeight_config = OpenEightConfig(
agent_name=os.environ["OPENEIGHT_AGENT_NAME"],
endpoint=os.environ["OPENEIGHT_ENDPOINT"],
credential=os.environ["OPENEIGHT_API_KEY"],
)
agent = create_deep_agent(
model=model,
tools=tools,
openeight=openeight_config,
)Compare with the native constructor
from deepagents import create_deep_agent
agent = create_deep_agent(
model=model,
tools=tools,
)4Publish tools and review the policy
Publish the tool schemas without running the model or calling the tools.
Use Sync for scripts; use Async inside an event loop.
agent.publish() # Publishes tools without invoking the agent.
print(agent.delivery_status())An acknowledged catalog delivery means OpenEight received the schemas. Open Agent onboarding and check the published version of each write tool. If each version is policy-ready, continue to Run and verify.
Root tools belong to the main agent; child tools belong to delegated agents. Deep Agents also generates filesystem and task tools. Configuring one tool does not configure these other tools. Prepare tools for governance →
Review Assist proposals
In Discover tools, review each new tool’s Read or Side-effect classification. Select Infer intents, then review and confirm the intent for each side-effecting tool. Continue with Generate to see the Assist proposals.
In Govern tools, open the proposal for each write tool that needs a policy. Review its rules and generated cases. A Workspace Admin or Owner can select Accept to activate the policy, or Tune to revise it.
5Run and verify
Choose a test input that asks your agent to use a governed tool. Use a test environment or a simulated effect when checking write actions. Invoke the agent you connected earlier.
invoke manages the session for a single call. If your agent uses a checkpointer, open a session with with agent: and pass the thread configuration when invoking it. Threads and checkpoints →
result = agent.invoke(inputs)If the action needs approval, open Approvals in the Console and review the pending request for your Agent.
In Agents → your Agent → Activity → Runs, open the Run and find the tool’s Decision. If the tool executed, its execution Event links to that Decision.
Missing a tool, Run or Decision? Troubleshoot your integration →
Try an input your policy denies and confirm the tool has no effect. For an authorized external action, check the destination to confirm completion.
Further reading
- Follow the incident response cookbook →
- Manage sessions in long-running services →
- Detailed SDK usage →
- Handle approvals →
Tell us which framework you use and how your agent runs. We’ll help you choose the integration approach. Keep credentials and private application data out of your message.
Email us at hello@openeight.ai.