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•11mo 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•11mo 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•11mo 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.

Request Camel Numbering

https://gov.om/w/request-camel-numbering
1•earksiinni•3m ago•0 comments

Git per sviluppatori: guida completa dai comandi base al workflow professionale

https://donatodelpeschio.it/blog/git-guida-completa-comandi-workflow
1•donnyBlanko•3m ago•0 comments

A bet on whether ML-KEM-768 or X25519 will break first

https://github.com/FiloSottile/ecc-vs-lattices-long-bet
1•figsoda•4m ago•1 comments

From Spec-Driven Work to Work Orchestration

https://trilogyai.substack.com/p/from-spec-driven-work-to-work-orchestration
1•kumanday•6m ago•0 comments

Hormuz, an MCP-first forecasting engine for reproducible modeling

https://github.com/farukalpay/hormuz-tectonochemical-engine/
2•festafin•7m ago•0 comments

Anthropic Mythos 0-days replicated with GPT5.4

https://twitter.com/kannthu1/status/2042695741844619502
1•knivets•7m ago•0 comments

Dario – use your Claude Max subscription as an API (no API key needed)

https://github.com/askalf/dario
1•askalf•15m ago•0 comments

Show HN: Collabmem – the memory system for long-term collaboration with AI

https://github.com/visionscaper/collabmem
1•visionscaper•16m ago•1 comments

Is ChatGPT Down?

https://chatgpt.com/
2•laser9•16m ago•1 comments

We gave an AI a 3-year Lease. It opened a store

https://andonlabs.com/blog/andon-market-launch
2•lukaspetersson•17m ago•0 comments

Anthropic loses appeals court bid to temporarily block DoD ruling

https://www.cnbc.com/2026/04/08/anthropic-pentagon-court-ruling-supply-chain-risk.html
1•gmays•18m ago•1 comments

Sciences Physiques

https://www.jf-noblet.fr/
2•Eridanus2•19m ago•1 comments

What Are You Trying to Say?

https://idiallo.com/blog/what-are-you-trying-to-say
2•foxfired•26m ago•0 comments

Warez Scene

https://en.wikipedia.org/wiki/Warez_scene
3•maltalex•26m ago•0 comments

Open Source LLM Comparison – Is Opus Cooked?

https://paradise-runner.github.io/frontier-comparison/
2•dividedcomet•31m ago•1 comments

Installing OpenBSD on the Pomera DM250 Writerdeck

https://jcs.org/2026/04/09/openbsd-dm250
1•djfergus•31m ago•0 comments

Show HN: Function Calling Harness: From 6.75% to 100% (Qwen Meetup Presentation)

https://typia.io/blog/function-calling-harness-qwen-meetup-korea/
2•samchon-github•33m ago•0 comments

AI Code Is Hollowing Out Open Source, and Maintainers Are Looking the Other Way

https://www.quippd.com/writing/2026/04/08/ai-code-is-hollowing-out-open-source-and-maintainers-ar...
3•pabs3•34m ago•0 comments

Daily You: A Personal Diary

https://github.com/Demizo/Daily_You
1•thunderbong•38m ago•0 comments

Helix and Typst are a match made in heaven

https://ergaster.org/til/helix-typst-match-in-heaven/
2•vinhnx•39m ago•0 comments

CLínica Bíblica: From Mission Hospital to Modern Medical Leader in Costa Rica

https://johnquam.substack.com/p/clinica-biblica-from-mission-hospital
1•headmonkey•43m ago•0 comments

Crystal on Rails (Rails-to-Crystal Transpiler)

https://intertwingly.net/blog/2026/04/10/Railcar.html
1•hugh4life•45m ago•0 comments

The term "AGI" is almost useless at this point

https://helentoner.substack.com/p/the-term-agi-is-almost-useless-at
1•gmays•45m ago•0 comments

Two Japanese suppliers commit to keeping Blu-ray discs and drives in supply

https://automaton-media.com/en/news/two-japanese-suppliers-commit-to-keeping-blu-ray-discs-and-dr...
2•voxadam•46m ago•0 comments

Use Claude Max subscription with OpenClaw again

https://github.com/zeulewan/glueclaw
1•zeulewan•58m ago•2 comments

Leaked – publicly unavailable unstable preview model

https://unstable.bot
14•mrhyyyyde•1h ago•2 comments

There are limited benefits when parents hold back their child in kindergarten

https://www.latimes.com/california/story/2026-03-23/limited-benefits-when-parents-hold-back-their...
1•PaulHoule•1h ago•0 comments

What, Is the GIL?

https://finbarr.ca/what-is-the-gil/
3•vinhnx•1h ago•0 comments

Iran Unable to Find Mines in Strait of Hormuz, U.S. Says

https://www.nytimes.com/2026/04/10/us/politics/iran-mines-strait.html
5•tyleo•1h ago•1 comments

Artemis II safely splashes down

https://www.cbsnews.com/live-updates/artemis-ii-splashdown-return/
267•areoform•1h ago•80 comments