{"_id":"@axemere/gateway-openai","_rev":"6-64ac295dd27677994ced0b1dc8be32e7","name":"@axemere/gateway-openai","dist-tags":{"latest":"0.2.0"},"versions":{"0.1.6":{"name":"@axemere/gateway-openai","version":"0.1.6","license":"MIT","_id":"@axemere/gateway-openai@0.1.6","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"dist":{"shasum":"7680f32574f451555688e218f3910882c83912f8","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.1.6.tgz","fileCount":7,"integrity":"sha512-NVu10sRJxibbE5B8hcuPfdF6HinEyfyL04JpFE9gjoq4mog8zmNY/hmIhFpX/L2BPfjFT3Ut8yZGcVmy4626vA==","signatures":[{"sig":"MEQCIAuJqm6RpSxhQZteQxteZleFVCBrf8pOASQUvwT7TLyaAiAKpQhRdGHAm58DqbVdSrjoBLRZafAVorpvJdPnr55ChQ==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7656},"jest":{"preset":"ts-jest","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]},"testEnvironment":"node"},"main":"dist/index.js","_from":"file:axemere-gateway-openai-0.1.6.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"_resolved":"/tmp/fcdd8a234d2f092bb77fcf5355fe450e/axemere-gateway-openai-0.1.6.tgz","_integrity":"sha512-NVu10sRJxibbE5B8hcuPfdF6HinEyfyL04JpFE9gjoq4mog8zmNY/hmIhFpX/L2BPfjFT3Ut8yZGcVmy4626vA==","repository":{"url":"git+https://github.com/Axemere-LLC/axemere-node.git","type":"git","directory":"packages/gateway-openai"},"_npmVersion":"10.8.2","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","directories":{},"_nodeVersion":"20.20.2","dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.1.6"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.4.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway-openai_0.1.6_1782421381789_0.4103773654157452","host":"s3://npm-registry-packages-npm-production"}},"0.1.7":{"name":"@axemere/gateway-openai","version":"0.1.7","license":"MIT","_id":"@axemere/gateway-openai@0.1.7","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"dist":{"shasum":"5565d4642bb69cb295a6978625dd11db2a5a9718","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.1.7.tgz","fileCount":7,"integrity":"sha512-Nm6UTW6o0CR6lpJEe5WtqUTe+D3aJIeR3NPo5XSGQndPiqidDw1KuEjSysaJH9sLhhq/Z9/jEnKauwZ/JIhOFw==","signatures":[{"sig":"MEYCIQChSZqB96DP/VbfE2rhIKSKcQjckboxNRcmXATj5mENWgIhAJUMvXvNnSc50jHMHT64i1sYJwgcBUs/5vMKrHlfJ5gs","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7656},"jest":{"preset":"ts-jest","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]},"testEnvironment":"node"},"main":"dist/index.js","_from":"file:axemere-gateway-openai-0.1.7.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"_resolved":"/tmp/d0474198e453ad78a11c41e9686430a1/axemere-gateway-openai-0.1.7.tgz","_integrity":"sha512-Nm6UTW6o0CR6lpJEe5WtqUTe+D3aJIeR3NPo5XSGQndPiqidDw1KuEjSysaJH9sLhhq/Z9/jEnKauwZ/JIhOFw==","repository":{"url":"git+https://github.com/Axemere-LLC/axemere-node.git","type":"git","directory":"packages/gateway-openai"},"_npmVersion":"10.8.2","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","directories":{},"_nodeVersion":"20.20.2","dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.1.7"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.4.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway-openai_0.1.7_1782427449096_0.8144105154601347","host":"s3://npm-registry-packages-npm-production"}},"0.1.8":{"name":"@axemere/gateway-openai","version":"0.1.8","license":"MIT","_id":"@axemere/gateway-openai@0.1.8","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"dist":{"shasum":"7688fce62f5e66cd28de45b062994cb347d23b69","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.1.8.tgz","fileCount":7,"integrity":"sha512-kGyJYPPJtUZOqO8LynqiB3/4GmGi4MGLWIfuAdCmkinWyEVlZzkMq7LNIVfB5S0aN20XKkTLAuDW4ohTAN1G9Q==","signatures":[{"sig":"MEYCIQDz9sjUb1L1MmbbCiPyIbk3N+IGtOXHFvbrEu5YgSOKtgIhAJmk/SQ2PUNVqtElU9C2BxwKOQaSHGCIfQaDJLq6gdxg","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7656},"jest":{"preset":"ts-jest","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]},"testEnvironment":"node"},"main":"dist/index.js","_from":"file:axemere-gateway-openai-0.1.8.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"_resolved":"/tmp/4b1c00e1b7d39784d0bd4f72727299dd/axemere-gateway-openai-0.1.8.tgz","_integrity":"sha512-kGyJYPPJtUZOqO8LynqiB3/4GmGi4MGLWIfuAdCmkinWyEVlZzkMq7LNIVfB5S0aN20XKkTLAuDW4ohTAN1G9Q==","repository":{"url":"git+https://github.com/Axemere-LLC/axemere-node.git","type":"git","directory":"packages/gateway-openai"},"_npmVersion":"10.8.2","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","directories":{},"_nodeVersion":"20.20.2","dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.1.8"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.4.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway-openai_0.1.8_1782481101595_0.38629806517178844","host":"s3://npm-registry-packages-npm-production"}},"0.1.9":{"name":"@axemere/gateway-openai","version":"0.1.9","license":"MIT","_id":"@axemere/gateway-openai@0.1.9","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"dist":{"shasum":"3f64955da0c97ac49041edfd00e5f7bd26c58e72","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.1.9.tgz","fileCount":7,"integrity":"sha512-34aukAakOef3VrGnkiobvCq2wHVz+wF4Z7IzZm+D/eqBHMye7EIsIklXqNinOuCEtCxad7W3RC/CkXeIyULz3A==","signatures":[{"sig":"MEUCIGnDjE/0fhDG/of8hbTDR7YvvQMGnzlfD5nZmtaLPW1PAiEAuEeIMFkmr5QSZOTdrQV17BmCvNBrH2r1+ZUFT1AtRz8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7656},"jest":{"preset":"ts-jest","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]},"testEnvironment":"node"},"main":"dist/index.js","_from":"file:axemere-gateway-openai-0.1.9.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"_resolved":"/tmp/aae6e5f33acf118b7d188c96003c5bcf/axemere-gateway-openai-0.1.9.tgz","_integrity":"sha512-34aukAakOef3VrGnkiobvCq2wHVz+wF4Z7IzZm+D/eqBHMye7EIsIklXqNinOuCEtCxad7W3RC/CkXeIyULz3A==","repository":{"url":"git+https://github.com/Axemere-LLC/axemere-node.git","type":"git","directory":"packages/gateway-openai"},"_npmVersion":"10.8.2","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","directories":{},"_nodeVersion":"20.20.2","dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.1.9"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.4.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway-openai_0.1.9_1782772295666_0.31009683862386295","host":"s3://npm-registry-packages-npm-production"}},"0.1.10":{"name":"@axemere/gateway-openai","version":"0.1.10","license":"MIT","_id":"@axemere/gateway-openai@0.1.10","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"dist":{"shasum":"48cdec32575836500333ec9047eb82809f9ba436","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.1.10.tgz","fileCount":7,"integrity":"sha512-+WG02prA7rRdTRuppSwIpMwNM1U2MJGRRMdA9QHrRP0GIUuDem+LCybbRt04q5atXMHsClNbivDLIlkucDaiUw==","signatures":[{"sig":"MEUCIQD8UCSYrgdkfLkv0Od7SWsODDmGVN4dwRfM3WGx8GOfdQIgK5siUi8quy2EzQJM3DfJ1l2GY32mae6ZLyVVviLbKhA=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":7674},"jest":{"preset":"ts-jest","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]},"testEnvironment":"node"},"main":"dist/index.js","_from":"file:axemere-gateway-openai-0.1.10.tgz","types":"dist/index.d.ts","engines":{"node":">=18"},"scripts":{"test":"jest","build":"tsc"},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"_resolved":"/tmp/109a4eb76166738cac83a0a23ad5b7e2/axemere-gateway-openai-0.1.10.tgz","_integrity":"sha512-+WG02prA7rRdTRuppSwIpMwNM1U2MJGRRMdA9QHrRP0GIUuDem+LCybbRt04q5atXMHsClNbivDLIlkucDaiUw==","repository":{"url":"git+https://github.com/Axemere-LLC/axemere-node.git","type":"git","directory":"packages/gateway-openai"},"_npmVersion":"10.8.2","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","directories":{},"_nodeVersion":"20.20.2","dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.1.10"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.0.0","ts-jest":"^29.0.0","typescript":"^5.4.0","@types/jest":"^29.0.0","@types/node":"^20.0.0"},"_npmOperationalInternal":{"tmp":"tmp/gateway-openai_0.1.10_1783088682624_0.7180238976278084","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@axemere/gateway-openai","version":"0.2.0","description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","main":"dist/index.js","types":"dist/index.d.ts","license":"MIT","engines":{"node":">=18"},"repository":{"type":"git","url":"git+https://github.com/Axemere-LLC/axemere-node.git","directory":"packages/gateway-openai"},"publishConfig":{"access":"public"},"dependencies":{"openai":"^4.0.0","@axemere/gateway":"0.2.0"},"devDependencies":{"typescript":"^5.4.0","@types/node":"^20.0.0","@types/jest":"^29.0.0","jest":"^29.0.0","ts-jest":"^29.0.0"},"jest":{"preset":"ts-jest","testEnvironment":"node","transform":{"^.+\\.tsx?$":["ts-jest",{"useESM":false}]}},"scripts":{"build":"tsc","test":"jest"},"_id":"@axemere/gateway-openai@0.2.0","bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"homepage":"https://github.com/Axemere-LLC/axemere-node#readme","_integrity":"sha512-nBBmGkJ4iS3gaZk+I9PeYh6+LddMIjlXfIKJWY3Dx4UBd2PWG32/HWTk2xIBLcVqVvC9OAT44ECnrRVkFHMz0Q==","_resolved":"/tmp/5d09d2eccf93b3a0585027adcfb35509/axemere-gateway-openai-0.2.0.tgz","_from":"file:axemere-gateway-openai-0.2.0.tgz","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-nBBmGkJ4iS3gaZk+I9PeYh6+LddMIjlXfIKJWY3Dx4UBd2PWG32/HWTk2xIBLcVqVvC9OAT44ECnrRVkFHMz0Q==","shasum":"16efc2a3953b056ff745c1db1d7ed36bb73a7563","tarball":"https://registry.npmjs.org/@axemere/gateway-openai/-/gateway-openai-0.2.0.tgz","fileCount":7,"unpackedSize":7672,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIG1m+/m6dGxyrt+V9+LAYuIt+G/g9Z0l76EVMizGxjieAiBzSfKdWDQ399IGQmvxXDnZsTd/+9Do4YQR9S7CfFD6Pw=="}]},"_npmUser":{"name":"keith-npm","email":"keith@axemere.com"},"directories":{},"maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/gateway-openai_0.2.0_1786552318960_0.6554569072750809"},"_hasShrinkwrap":false}},"time":{"created":"2026-06-25T21:03:01.572Z","modified":"2026-08-12T16:31:59.490Z","0.1.6":"2026-06-25T21:03:01.921Z","0.1.7":"2026-06-25T22:44:09.226Z","0.1.8":"2026-06-26T13:38:21.750Z","0.1.9":"2026-06-29T22:31:35.855Z","0.1.10":"2026-07-03T14:24:42.756Z","0.2.0":"2026-08-12T16:31:59.089Z"},"bugs":{"url":"https://github.com/Axemere-LLC/axemere-node/issues"},"license":"MIT","homepage":"https://github.com/Axemere-LLC/axemere-node#readme","repository":{"type":"git","url":"git+https://github.com/Axemere-LLC/axemere-node.git","directory":"packages/gateway-openai"},"description":"Axemere AI Gateway SDK — OpenAI drop-in wrapper","maintainers":[{"name":"keith-npm","email":"keith@axemere.com"}],"readme":"# @axemere/gateway-openai\n\n[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](../../LICENSE)\n\nDrop-in OpenAI client factory for the [Axemere AI Gateway](https://axemere.ai).\n\nReturns a standard `OpenAI` instance pre-configured to route through the gateway. All existing OpenAI code works unchanged — the gateway adds cost controls, policy enforcement, and an append-only audit ledger to every call.\n\n## Install\n\n```bash\nnpm install @axemere/gateway-openai\n```\n\n## Usage\n\n```typescript\nimport { openaiClient } from \"@axemere/gateway-openai\";\n\nconst client = openaiClient(); // reads AXEMERE_GATEWAY_URL + AXEMERE_GATEWAY_TOKEN\n\nconst response = await client.chat.completions.create({\n  model: \"gpt-4o-mini\",\n  messages: [{ role: \"user\", content: \"Hello\" }],\n});\nconsole.log(response.choices[0].message.content);\n```\n\nStreaming works exactly as it does with the standard `openai` package.\n\n## Configuration\n\n| Env var | Description |\n|---------|-------------|\n| `AXEMERE_GATEWAY_URL` | Gateway base URL, e.g. `http://localhost:7080` |\n| `AXEMERE_GATEWAY_TOKEN` | Gateway token issued by the gateway |\n\n## Links\n\n- [Axemere AI Gateway](https://axemere.ai)\n- [Documentation](https://axemere.ai/docs/sdks/typescript)\n- [GitHub](https://github.com/Axemere-LLC/axemere-node)\n\n## License\n\nMIT\n","readmeFilename":"README.md"}