frontpage.
newsnewestaskshowjobs

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•1y 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•1y 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•1y 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.

Inside The Discussions at AI Companies over a Superintelligence Doomsday

https://www.nytimes.com/2026/09/12/technology/doomsday-discussions-ai-companies.html
1•AntiRush•3m ago•0 comments

Show HN: Opentracker, an open source Pivotal Tracker

https://github.com/usero-feedback/opentracker
1•willsmith72•3m ago•1 comments

When AI Safety become market capture

1•boredumb•4m ago•0 comments

Gem for Linux

https://github.com/triglav-os/gem
1•rbanffy•4m ago•0 comments

Ask HN: If AI writes the code, what matters?

1•andrewstetsenko•5m ago•0 comments

OpenAI's Sam Altman says it would be 'ill-advised' to go public in 2026

https://techcrunch.com/2026/09/12/openais-sam-altman-says-it-would-be-ill-advised-to-go-public-in...
2•humanlion87•5m ago•0 comments

The Impossibility of Airplane Safety Without Flight Instruments

https://1a3orn.com/sub/airplane-safety.html
1•yurivish•7m ago•0 comments

San Francisco Ruby Conference – Nov 10-12, 2026

https://sfruby.com/
2•juuh42dias•7m ago•1 comments

Real-SWE: Benchmarking AI models on private, real-world, enterprise codebases

https://withspecific.com/benchmarks/real-swe
1•theanonymousone•8m ago•0 comments

Block CFO on AI doomsday debate: We need to balance innovation and safeguards

https://finance.yahoo.com/technology/article/block-cfo-on-ai-doomsday-debate-we-need-to-balance-i...
1•wslh•9m ago•0 comments

Fly Arena: Simulating a Fruit Fly with a Connectome and Physics

https://github.com/artem-x-meta/fly-arena
1•theorchid•10m ago•0 comments

High school students use AI to solve an open problem in mathematics

https://twitter.com/QuanquanGu/status/2098858841903681902
1•netvarun•10m ago•0 comments

How to start writing online (things I wish I knew before)

https://domelian.substack.com/p/how-to-start-writing-online
1•domelian•12m ago•0 comments

We Must Pace the Frontier

https://twitter.com/DarioAmodei/status/2098773920774074715
2•felixdoerp•14m ago•0 comments

I built a harness and now it is my daily driver for local agents

https://github.com/mrsirg97-rgb/rig
1•mrsirg•15m ago•1 comments

Tempting the Temperate: The smorgasbord in the age of Ozempic

https://www.cabinetmagazine.org/issues/71/licht.php
1•NaOH•16m ago•0 comments

Solar OS on CL- 32 [video]

https://www.youtube.com/watch?v=DHXND5JQ2cw
1•philips•18m ago•0 comments

Consumer Rights Wiki: 44 instances in which Sony says you own your games

https://www.tomshardware.com/video-games/playstation/consumer-rights-wiki-documents-at-least-44-i...
1•emptybits•19m ago•0 comments

I need help with this data? Is this all true?

https://nostradamusintellect.com/engine
1•Nikola5•21m ago•0 comments

High Yields Are Here to Stay

https://www.bloomberg.com/news/articles/2026-09-11/regardless-of-the-iran-war-and-kevin-warsh-hig...
1•toomuchtodo•21m ago•1 comments

The Accountability Gap in AI

https://lyfe.ninja/news/the-accountability-gap-in-ai/
1•lyfeninja•22m ago•0 comments

Your data from 40 different sources into your terminal?

https://pypi.org/project/ycb/
1•Kirtan16•24m ago•0 comments

Per-tensor layout maps for GGUF quantization

https://huggingface.co/blog/bartowski/per-tensor-layout-maps-for-gguf-quantization
2•pickledish•30m ago•0 comments

Benchmark: CadQuery vs. OpenSCAD for agentic CAD work

https://modelrift.com/blog/cadquery-vs-openscad/
6•jetter•36m ago•0 comments

Show HN: AgentRuleBench, does AI agents violate inferred architecture rules?

https://github.com/Tommkruix/agentrulebench
2•Tommkruix123•37m ago•0 comments

OpenAI delaying IPO amid AI safety concerns, Sam Altman says

https://www.axios.com/2026/09/12/openai-public-ipo-delay-sam-altman
4•m-hodges•38m ago•0 comments

Show HN: An independent directory of AI misalignment reports

https://misalignment.xyz/
1•awormuth•38m ago•0 comments

OmarchyOS Agentic Linux

https://omarchy.us/#home
3•ijidak•41m ago•1 comments

JetKVM OS Services

https://jetkvm.com/blog/introducing-jetkvm-os-services
4•thinkafterbef•41m ago•0 comments

Void Linux Maintainer Orphans 100 Packages over AI Policy Dispute

https://www.phoronix.com/news/Void-Linux-AI-Policy-Orphan
5•Bender•45m ago•0 comments