{"id":"6746a219-b8e9-40f9-b9bf-eed7904f8df0","slug":"clawhub-lrg913427-dot-agent-lens","name":"Agent Lens","description":"Track AI agent API calls, analyze token usage, and optimize costs. Use when user wants to monitor LLM spending, debug API calls, track token consumption, or...","canonicalUrl":"https://www.xpersona.co/agent/clawhub-lrg913427-dot-agent-lens","sourceUrl":"https://clawhub.ai/lrg913427-dot/agent-lens","homepage":"https://clawhub.ai/lrg913427-dot/skills/agent-lens","source":"CLAWHUB","vendor":{"slug":"clawhub","label":"Clawhub","url":"https://clawhub.ai/lrg913427-dot/skills/agent-lens"},"protocols":["OPENCLEW"],"capabilities":[],"trustScore":null,"trustConfidence":"unknown","artifactCount":0,"benchmarkCount":0,"lastRelease":"2.17.3","freshnessAt":"2026-10-09T12:11:21.495Z","freshnessLabel":"Oct 9, 2026","securityReviewed":true,"openapiReady":false,"stats":[{"label":"Trust score","value":"Unknown"},{"label":"Compatibility","value":"OpenClaw"},{"label":"Freshness","value":"Oct 9, 2026"},{"label":"Vendor","value":"Clawhub"},{"label":"Artifacts","value":"0"},{"label":"Benchmarks","value":"0"},{"label":"Last release","value":"2.17.3"}],"factsPreview":[{"factKey":"vendor","category":"vendor","label":"Vendor","value":"Clawhub","href":"https://clawhub.ai/lrg913427-dot/skills/agent-lens","sourceUrl":"https://clawhub.ai/lrg913427-dot/skills/agent-lens","sourceType":"profile","confidence":"medium","observedAt":"2026-10-09T12:11:21.503Z","isPublic":true},{"factKey":"protocols","category":"compatibility","label":"Protocol compatibility","value":"OpenClaw","href":"https://www.xpersona.co/api/v1/agents/clawhub-lrg913427-dot-agent-lens/contract","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lrg913427-dot-agent-lens/contract","sourceType":"contract","confidence":"medium","observedAt":"2026-10-09T12:11:21.503Z","isPublic":true},{"factKey":"traction","category":"adoption","label":"Adoption signal","value":"2.7K downloads","href":"https://clawhub.ai/lrg913427-dot/agent-lens","sourceUrl":"https://clawhub.ai/lrg913427-dot/agent-lens","sourceType":"profile","confidence":"medium","observedAt":"2026-10-09T12:11:21.503Z","isPublic":true},{"factKey":"latest_release","category":"release","label":"Latest release","value":"2.17.3","href":"https://clawhub.ai/lrg913427-dot/agent-lens","sourceUrl":"https://clawhub.ai/lrg913427-dot/agent-lens","sourceType":"release","confidence":"medium","observedAt":"2026-06-13T10:01:59.198Z","isPublic":true},{"factKey":"handshake_status","category":"security","label":"Handshake status","value":"UNKNOWN","href":"https://www.xpersona.co/api/v1/agents/clawhub-lrg913427-dot-agent-lens/trust","sourceUrl":"https://www.xpersona.co/api/v1/agents/clawhub-lrg913427-dot-agent-lens/trust","sourceType":"trust","confidence":"medium","observedAt":null,"isPublic":true}],"highlights":["2.7K downloads","Trust evidence available"],"agentCard":{"name":"Agent Lens","description":"Track AI agent API calls, analyze token usage, and optimize costs. Use when user wants to monitor LLM spending, debug API calls, track token consumption, or...","source":"CLAWHUB","sourceId":"clawhub:s175nn6ap9fe4ne23bws9svzm185ywrq:agent-lens","homepage":"https://clawhub.ai/lrg913427-dot/skills/agent-lens","repository":"https://clawhub.ai/lrg913427-dot/agent-lens","documentation":"https://www.xpersona.co/agent/clawhub-lrg913427-dot-agent-lens","protocols":["OPENCLEW"],"examples":[{"kind":"example","language":"bash","snippet":"# Install\npip install git+https://github.com/lrg913427-dot/agent-lens.git\n\n# Generate demo data and see it in action\nagent-lens demo\n\n# View stats\nagent-lens stats\nagent-lens cost\nagent-lens recent"},{"kind":"example","language":"python","snippet":"from agent_lens import AgentLens\n\nlens = AgentLens(agent_name=\"my-agent\")\n\n@lens.track(model=\"gpt-4o\")\ndef call_api(prompt):\n    return client.chat.completions.create(\n        model=\"gpt-4o\",\n        messages=[{\"role\": \"user\", \"content\": prompt}],\n    )\n\n# Token usage is auto-extracted from OpenAI-style responses\nresult = call_api(\"Hello\")"}]}}