frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Show HN: AgentShield SDK – Runtime security for agentic AI applications

https://pypi.org/project/agentshield-sdk/
2•iamsanjayk•10mo ago
Hi HN,

We built AgentShield, a Python SDK and CLI to add a security checkpoint for AI agents before they perform potentially risky actions like external API calls or executing generated code.

Problem: Agents calling arbitrary URLs or running unchecked code can lead to data leaks, SSRF, system damage, etc.

Solution: AgentShield intercepts these actions:

- guarded_get(url=...): Checks URL against policies (block internal IPs, HTTP, etc.) before making the request.

- safe_execute(code_snippet=...): Checks code for risky patterns (os import, eval, file access, etc.) before execution.

It works via a simple API call to evaluate the action against configurable security policies. It includes default policies for common risks.

Get Started:

Install: pip install agentshield-sdk

Get API Key (CLI): agentshield keys create

Use in Python: from agentshield_sdk import AgentShield # shield = AgentShield(api_key=...) # await shield.guarded_get(url=...) # await shield.safe_execute(code_snippet=...)

Full details, documentation, and the complete README are at <https://pypi.org/project/agentshield-sdk/>

We built this because securing agent interactions felt crucial as they become more capable. It's still early days, and we'd love to get your feedback on the approach, usability, and policies.

Comments

subhampramanik•10mo ago
Looks interesting -- Does it work like a wrapper on top of OpenAI specs? Like, can we just replace the OpenAI package with this, and it's fully integrated?
iamsanjayk•10mo ago
Hey, thanks for asking! Good question.

AgentShield isn't a wrapper around the OpenAI package, so you wouldn't replace openai with it. Think of AgentShield as a separate safety check you call just before your agent actually tries to run a specific risky action.

So, you'd still use the openai library as normal to get your response (like a URL to call or code to run). Then, before you actually use httpx/requests to call that URL, or exec() to run the code, you'd quickly check it with shield.guarded_get(the_url) or shield.safe_execute(the_code).

Currently, It focuses on securing the action itself (the URL, the code snippet) rather than wrapping the LLM call that generated it.

GitHub appears to be hiding repo stars on mobile for signed-out users

1•ramoz•53s ago•0 comments

Garrett Langley of Flock Safety on building technology to solve crime

https://cheekypint.substack.com/p/garrett-langley-of-flock-safety-on
1•hhs•1m ago•0 comments

Kafka 101

https://highscalability.com/untitled-2/
1•medbar•1m ago•0 comments

Show HN: MCP server that finds dev tool credits in your workflow

1•janaksunil•2m ago•0 comments

Helix: A post-modern text editor

https://helix-editor.com/
2•doener•4m ago•0 comments

Turns out making games is the easy part

1•clamlotus•5m ago•0 comments

Show HN: A governance pattern for self-evolving AI skills

https://github.com/191341025/Self-Evolving-Skill
1•tiansenxu•6m ago•0 comments

Follow-Up: Build Awesome's Kickstarter Is Cancelled

https://brennan.day/build-awesomes-kickstarter-is-cancelled/
2•brennanbrown•7m ago•0 comments

London tech ecosystem map (235 companies)

https://www.londonmaxxxing.com/
2•birdmania•7m ago•1 comments

Polymarket Removes Betting Market on Nuclear Detonation

https://www.wsj.com/livecoverage/stock-market-today-dow-sp-500-nasdaq-03-04-2026/card/polymarket-...
1•bookofjoe•8m ago•0 comments

Agent Office – Slack for (OpenClaw Like) AI Agents

https://github.com/baturyilmaz/agent-office
1•arbayi•8m ago•1 comments

WebSocket+Huffman vs. SSE+JSON for streaming LLM tokens

https://github.com/vidur2/token_entropy_encoder
1•vidur2•10m ago•1 comments

Learning makes brain cells work together, not apart: study

https://www.rochester.edu/newscenter/learning-makes-brain-cells-work-together-not-apart-694722/
1•hhs•10m ago•0 comments

Show HN: WTF-CLI – An AI-powered terminal error solver written in Rust

https://github.com/JitseLambrichts/WTF-CLI
1•JitseLambrichts•10m ago•0 comments

GoldRush Agent Skills for blockchain data and pricing

https://goldrush.dev/agents/
1•Ferns765•12m ago•0 comments

Show HN: Kaeso – infrastructure for connecting AI agents to real services

https://kaeso.ai
1•devinoldenburg•12m ago•0 comments

Telemetry helps. you still get to turn it off

https://ritter.vg/blog-telemetry.html
1•birdculture•12m ago•0 comments

Ask HN: Anyone else feel this community has changed recently?

2•kypro•13m ago•0 comments

Food fortification is cost-effective in fighting hunger across 63 countries

https://www.cochrane.org/about-us/news/food-fortification-highly-cost-effective-fighting-hidden-h...
1•hhs•13m ago•0 comments

Scalify.ai – Order your own website in under 10 minutes

https://www.scalify.ai
1•josh-ternyak•14m ago•0 comments

Supa Claw

https://github.com/vincenzodomina/supaclaw
1•rmason•15m ago•0 comments

Show HN: PureMark – JSON, Base64, Diff tools that never send data to a server

https://json.puremark.app
1•tommy_worklab•19m ago•0 comments

Show HN: An OTLP observability plugin for OpenClaw AI agents in Grafana

https://github.com/awsome-o/grafana-lens
1•AwesomeO3000•19m ago•0 comments

A simplified PostgreSQL-backed ordered message queue with webhook delivery

https://github.com/alaminopu/pypgmq
1•alaminopu•21m ago•0 comments

The Mirror and the Gift

https://www.robpanico.com/articles/display/?entry_short=the-mirror-and-the-gift
1•retrocog•23m ago•1 comments

CERN upgrade to LHCb experiment threatened by UK funding cuts

https://physicsworld.com/a/cern-upgrade-to-lhcb-experiment-threatened-by-uk-funding-cuts/
1•elashri•24m ago•0 comments

Poet-X Enables Billion-Parameter LLM Training on Single H100 GPU

https://www.simplenews.ai/news/poet-x-enables-billion-parameter-llm-training-on-single-h100-gpu-ktw3
1•goldkey•25m ago•0 comments

Show HN: A simple habit tracker focused on clarity and consistency

https://play.google.com/store/apps/details?id=com.shadowstudios.habitonlinetracker&hl=en_US
1•Belsonsan•26m ago•0 comments

Show HN: Kaeso: an OAuth hub for AI agents

1•devinoldenburg•26m ago•0 comments

Show HN: WebBridge turns any website into MCP tools by recording browser traffic

https://github.com/jalabulajunx/WebBridge
2•nonstopnonsense•27m ago•1 comments