{"id":20901,"library":"agent-lifecycle-toolkit","title":"Agent Lifecycle Toolkit","description":"The Agent Lifecycle Toolkit (ALTK) is a library of components to help agent builders improve their agent with minimal integration effort and setup. Current version 0.10.1, requires Python >=3.10, maintained by Anthropic. Release cadence: active development.","status":"active","version":"0.10.1","language":"python","source_language":"en","source_url":"https://github.com/anthropics/agent-lifecycle-toolkit","tags":["agent","lifecycle","anthropic","monitoring","toolkit"],"install":[{"cmd":"pip install agent-lifecycle-toolkit","lang":"bash","label":"PyPI"}],"dependencies":[{"reason":"Required for Anthropic client usage","package":"anthropic","optional":false}],"imports":[{"note":"Incorrect path; top-level access is correct","wrong":"from agent_lifecycle_toolkit.client import AgentLifecycleClient","symbol":"AgentLifecycleClient","correct":"from agent_lifecycle_toolkit import AgentLifecycleClient"},{"note":"Incorrect path; exported at package level","wrong":"from agent_lifecycle_toolkit.middleware import AgentLifecycleMiddleware","symbol":"AgentLifecycleMiddleware","correct":"from agent_lifecycle_toolkit import AgentLifecycleMiddleware"},{"note":"Message is re-exported at top level","wrong":"from agent_lifecycle_toolkit.types import Message","symbol":"Message","correct":"from agent_lifecycle_toolkit import Message"}],"quickstart":{"code":"import os\nfrom agent_lifecycle_toolkit import AgentLifecycleClient\n\nclient = AgentLifecycleClient(api_key=os.environ.get('ALTK_API_KEY', ''), base_url=\"https://api.altk.dev\")\n# Example: start a session\nsession = client.create_session(agent_id=\"my-agent\")\nprint(f\"Session ID: {session.id}\")","lang":"python","description":"Initialize the ALTK client and create a session."},"warnings":[{"fix":"Update base_url to https://api.altk.dev","message":"API base URL changed in 0.10.0 from https://app.altk.dev to https://api.altk.dev","severity":"breaking","affected_versions":"<0.10.0"},{"fix":"Replace client.create_agent(...) with client.register_agent(...)","message":"The `create_agent` method is deprecated in 0.10.x, use `register_agent` instead","severity":"deprecated","affected_versions":"0.10.0+"},{"fix":"Upgrade to Python >=3.10","message":"Python 3.9 support dropped in 0.10.0","severity":"breaking","affected_versions":"<0.10.0"},{"fix":"Always set ALTK_API_KEY or pass api_key parameter explicitly","message":"Environment variable `ALTK_API_KEY` is read at client init; if not set and no api_key passed, client raises ValueError with unclear message","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-27T00:00:00.000Z","next_check":"2026-07-26T00:00:00.000Z","problems":[{"fix":"Run `pip install agent-lifecycle-toolkit` (note hyphens, not underscores)","cause":"Package not installed or installed under different name","error":"ModuleNotFoundError: No module named 'agent_lifecycle_toolkit'"},{"fix":"Set environment variable `export ALTK_API_KEY=your_key` or instantiate with `AgentLifecycleClient(api_key='your_key')`","cause":"Missing authentication credential","error":"ValueError: API key not provided. Set ALTK_API_KEY environment variable or pass api_key."},{"fix":"Upgrade to latest version: `pip install --upgrade agent-lifecycle-toolkit`","cause":"Outdated package version (<0.9.0) where client was in submodule","error":"AttributeError: module 'agent_lifecycle_toolkit' has no attribute 'AgentLifecycleClient'"}],"ecosystem":"pypi","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}