### Install anima-labs-toolkit-langchain Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/langchain/README.md Install the package using pip. ```bash pip install anima-labs-toolkit-langchain ``` -------------------------------- ### Install @anima-labs/toolkit-vercel-ai Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/vercel-ai/README.md Install the package using npm. ```bash npm install @anima-labs/toolkit-vercel-ai ``` -------------------------------- ### Quick Start with Anima Toolkit Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/openai-agents/README.md Initialize an agent with Anima tools and run a task synchronously. ```python import os from agents import Agent, Runner from anima_toolkit_openai import anima_tools os.environ["ANIMA_API_KEY"] = "sk-..." agent = Agent( name="Email Assistant", instructions="You help users manage their email.", tools=anima_tools(), ) result = Runner.run_sync(agent, "List the last 5 messages in agent_abc123's inbox") print(result.final_output) ``` -------------------------------- ### Install @anima-labs/toolkit-langchain Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/langchain/README.md Install the required packages using npm. ```bash npm install @anima-labs/toolkit-langchain @langchain/core # plus `langchain` if you use createAgent as below ``` -------------------------------- ### Install Anima Labs Toolkit Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/openai-agents/README.md Install the package using pip. ```bash pip install anima-labs-toolkit-openai ``` -------------------------------- ### Quick Start with LangChain Agent Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/langchain/README.md Initialize the Anima tools and use them within a LangChain AgentExecutor. ```python import os from langchain_openai import ChatOpenAI from langchain.agents import AgentExecutor, create_openai_tools_agent from langchain_core.prompts import ChatPromptTemplate from anima_toolkit_langchain import get_anima_tools os.environ["ANIMA_API_KEY"] = "sk-..." tools = get_anima_tools() llm = ChatOpenAI(model="gpt-4o") prompt = ChatPromptTemplate.from_messages([ ("system", "You help users manage their email."), ("human", "{input}"), ("placeholder", "{agent_scratchpad}"), ]) agent = create_openai_tools_agent(llm, tools, prompt) executor = AgentExecutor(agent=agent, tools=tools) result = executor.invoke({"input": "List agents"}) print(result["output"]) ``` -------------------------------- ### Install Anima MCP Server via npx Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/mcp/README.md Run the server directly using npx. ```bash npx @anima-labs/mcp ``` -------------------------------- ### Install Anima MCP Server globally Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/mcp/README.md Install the package globally using npm. ```bash npm install -g @anima-labs/mcp ``` -------------------------------- ### Development and Build Commands Source: https://github.com/anima-labs-ai/toolkit/blob/main/README.md Commands for installing dependencies, building packages, running type checks, and verifying SDK contracts across the workspace. ```bash bun install # workspace install for all Node packages bun run --filter '*' build # build node/core, then the adapters bun run typecheck # tsc across every Node package node scripts/check_tool_parity.mjs pip install ./python/core python scripts/check_sdk_contract.py python/core/src/anima_toolkit_core/operations.py ``` -------------------------------- ### Install Anima Skill Source: https://github.com/anima-labs-ai/toolkit/blob/main/openclaw/README.md Clone the toolkit repository and copy the SKILL.md file to your local OpenClaw skills directory. ```bash # Clone and copy git clone https://github.com/anima-labs-ai/toolkit.git cp toolkit/openclaw/SKILL.md ~/.openclaw/skills/anima/SKILL.md ``` -------------------------------- ### Quick Start with generateText Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/vercel-ai/README.md Initialize the Anima tools and use them with the Vercel AI SDK generateText function. ```typescript import { generateText } from "ai"; import { openai } from "@ai-sdk/openai"; import { animaTools } from "@anima-labs/toolkit-vercel-ai"; const result = await generateText({ model: openai("gpt-4o"), tools: animaTools({ apiKey: process.env.ANIMA_API_KEY }), maxSteps: 5, prompt: "Send an email from agent_abc123 to hello@example.com saying hi", }); console.log(result.text); ``` -------------------------------- ### Install Anima OpenCode Plugin Source: https://github.com/anima-labs-ai/toolkit/blob/main/opencode/README.md Install the required npm package to enable Anima functionality in your OpenCode project. ```bash npm install @anima-labs/opencode-plugin ``` -------------------------------- ### List messages using anima-labs-toolkit-core Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/core/README.md Demonstrates how to initialize an Anima client and list messages for a specific agent. ```python from anima_toolkit_core import get_client, list_messages client = get_client() list_messages(client, agent_id="agt_123", limit=10) ``` -------------------------------- ### Configure API Key via environment variable Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/vercel-ai/README.md Set the API key as an environment variable and initialize tools without arguments. ```bash export ANIMA_API_KEY=sk-... ``` ```typescript const tools = animaTools(); ``` -------------------------------- ### Create an agent and send email workflow Source: https://github.com/anima-labs-ai/toolkit/blob/main/openclaw/SKILL.md A conceptual workflow for creating an agent and sending an email. ```text Create a new agent called "Assistant" → send_email to user@example.com ``` -------------------------------- ### Initialize AnimaToolkit with API Key Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/openai-agents/README.md Pass the API key directly when creating the toolkit instance. ```python from anima_toolkit_openai import AnimaToolkit toolkit = AnimaToolkit(api_key="sk-...") agent = Agent(name="assistant", tools=toolkit.tools()) ``` -------------------------------- ### Initialize LangChain Agent with Anima Tools Source: https://github.com/anima-labs-ai/toolkit/blob/main/README.md Demonstrates how to integrate Anima tools into a LangChain agent. The tools automatically read the ANIMA_API_KEY and ANIMA_AGENT_ID environment variables. ```typescript // LangChain.js import { createAgent } from "langchain"; import { createAnimaTools } from "@anima-labs/toolkit-langchain"; const agent = createAgent({ model: "openai:gpt-5", tools: createAnimaTools(), // reads ANIMA_API_KEY / ANIMA_AGENT_ID }); const result = await agent.invoke({ messages: [{ role: "user", content: "Check my inbox and summarize new mail." }], }); ``` -------------------------------- ### Store and use credentials workflow Source: https://github.com/anima-labs-ai/toolkit/blob/main/openclaw/SKILL.md A conceptual workflow for provisioning a vault, storing credentials, and generating passwords. ```text provision_vault → store_credential (CRM login) → get_credential when needed → generate_password for new accounts ``` -------------------------------- ### Configure Anima API Key Source: https://github.com/anima-labs-ai/toolkit/blob/main/openclaw/README.md Set the ANIMA_API_KEY environment variable to authenticate your Anima services. ```bash export ANIMA_API_KEY=ak_... ``` -------------------------------- ### Configure Anima MCP Server for Claude Desktop Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/mcp/README.md Add the server configuration to your MCP client settings, ensuring the ANIMA_API_KEY environment variable is set. ```json { "mcpServers": { "anima": { "command": "npx", "args": ["@anima-labs/mcp"], "env": { "ANIMA_API_KEY": "sk-..." } } } } ``` -------------------------------- ### Configure Anima Environment Variables Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/langchain/README.md Set the required API key and agent ID as environment variables. ```bash export ANIMA_API_KEY=ak_... export ANIMA_AGENT_ID=agent_... ``` -------------------------------- ### Configure Anima Tools Explicitly Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/langchain/README.md Provide the API key and agent ID directly to the createAnimaTools function. ```ts const tools = createAnimaTools({ apiKey: "ak_...", agentId: "agent_..." }); ``` -------------------------------- ### Set ANIMA_API_KEY Environment Variable Source: https://github.com/anima-labs-ai/toolkit/blob/main/python/openai-agents/README.md Configure the API key via the shell environment. ```bash export ANIMA_API_KEY=sk-... ``` -------------------------------- ### Configure Anima MCP server for Claude Cowork Source: https://github.com/anima-labs-ai/toolkit/blob/main/cowork/README.md This JSON configuration defines the MCP server connection for Anima within a Cowork workspace, including the command, arguments, and environment variables. ```json { "cowork": { "mcpServers": { "anima": { "command": "npx", "args": ["-y", "@anima-labs/mcp"], "env": { "ANIMA_API_KEY": "ak_..." } } } } } ``` -------------------------------- ### Configure OpenCode Plugin Source: https://github.com/anima-labs-ai/toolkit/blob/main/opencode/README.md Add the animaPlugin to your OpenCode configuration file. ```ts import { animaPlugin } from "@anima-labs/opencode-plugin"; export default { plugins: [animaPlugin], }; ``` -------------------------------- ### Configure API Key directly Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/vercel-ai/README.md Pass the API key directly to the animaTools configuration object. ```typescript const tools = animaTools({ apiKey: "sk-..." }); ``` -------------------------------- ### Use with streamText Source: https://github.com/anima-labs-ai/toolkit/blob/main/node/vercel-ai/README.md Stream text responses from the AI model using Anima tools. ```typescript import { streamText } from "ai"; import { openai } from "@ai-sdk/openai"; import { animaTools } from "@anima-labs/toolkit-vercel-ai"; const result = streamText({ model: openai("gpt-4o"), tools: animaTools(), maxSteps: 5, prompt: "Check my inbox for agent_abc123", }); for await (const chunk of result.textStream) { process.stdout.write(chunk); } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.